Files
home-assistant-core/homeassistant/components
Sebastian Muszynski 138350fe3d Xiaomi MiIO Light: Flag the device as unavailable if not reachable (#12449)
* Unavailable state introduced if the device isn't reachable.
A new configuration option "model" can be used to define the device type.

```
light:
  - platform: xiaomi_miio
    name: Xiaomi Philips Smart LED Ball
    host: 192.168.130.67
    token: da548d86f55996413d82eea94279d2ff
    # Bypass of the device model detection.
    # Optional but required to add an unavailable device
    model: philips.light.bulb
```

New attribute "scene" and "delay_off_countdown" added.
New service xiaomi_miio_set_delay_off introduced.

* Service xiaomi_miio_set_delayed_turn_off updated. The attribute "delayed_turn_off" is a timestamp now.

* None must be a valid model.

* Math.

* Microseconds removed because of the low resolution.

* Comment updated.

* Update the ATTR_DELAYED_TURN_OFF on a deviation of 4 seconds (max latency) only.

* Import of datetime fixed.

* Typo fixed.

* pylint issues fixed.

* Naming.

* Service parameter renamed.

* New ceiling lamp model (philips.light.zyceiling) added.

* Use positive timedelta instead of seconds.

* Use a unique data key per domain.
2018-02-27 12:27:52 -08:00
..
2018-01-20 22:35:38 -08:00
2018-02-21 23:42:23 -08:00
2018-02-21 12:55:33 -08:00
2018-02-15 22:06:14 +01:00
2018-02-26 22:21:10 -08:00
2018-01-30 10:39:39 +01:00
2018-02-17 10:29:14 +01:00
2018-02-17 10:29:14 +01:00
2018-01-29 23:37:19 +01:00
2018-02-27 14:22:52 +01:00
2018-02-11 09:20:28 -08:00
2018-02-25 23:43:26 -08:00
2018-02-27 00:05:29 -08:00
2018-02-11 09:20:28 -08:00
2018-02-17 10:29:14 +01:00
2018-02-17 10:29:14 +01:00
2018-01-29 23:37:19 +01:00
2018-02-17 10:29:14 +01:00
2018-01-29 23:37:19 +01:00
2018-02-18 09:24:51 +01:00
2018-01-20 22:35:38 -08:00
…
2018-02-05 14:02:43 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2018-02-11 09:20:28 -08:00
2018-01-29 23:37:19 +01:00
…
…
2018-01-23 23:03:54 +01:00
2018-01-29 23:37:19 +01:00
2018-01-27 11:58:27 -08:00
2018-01-29 00:23:53 -08:00
…
2018-02-01 11:24:02 +01:00
2018-01-29 23:37:19 +01:00
2018-01-29 00:24:08 -08:00
2018-02-20 12:37:01 +01:00
…
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-30 14:44:05 -08:00
2018-01-28 18:04:54 +01:00
2018-01-20 22:35:38 -08:00
…
2018-02-11 09:20:28 -08:00
2018-02-22 15:40:58 -08:00
2018-01-29 23:37:19 +01:00
2018-01-15 14:24:12 -08:00
2018-01-27 11:58:27 -08:00
2018-01-20 22:35:38 -08:00
2018-02-26 17:01:00 +01:00
2018-01-18 23:37:24 +01:00
2018-01-29 23:37:19 +01:00
…
2017-12-26 11:12:28 -08:00
2018-01-29 00:24:08 -08:00
2018-02-11 09:20:28 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-02-11 09:20:28 -08:00
2018-02-17 10:29:14 +01:00
2018-02-11 09:20:28 -08:00
2018-02-11 09:20:28 -08:00
2018-01-22 22:54:41 -08:00
2018-01-29 23:37:19 +01:00
…
2018-02-11 09:20:28 -08:00
2018-02-18 14:34:28 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 00:23:53 -08:00
…
2018-02-17 10:29:14 +01:00
…
2018-02-02 17:28:54 -08:00
2018-02-26 22:27:20 +01:00
…
2017-11-22 09:37:20 +00:00
…
2018-02-11 09:20:28 -08:00
2018-02-17 21:49:32 -08:00
…
…
2018-02-17 10:29:14 +01:00
2018-01-15 23:08:48 +01:00
…
2018-01-09 23:55:14 -08:00
…