Files
home-assistant-core/homeassistant/components/light
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
..
2017-12-05 09:44:22 +01:00
2018-02-11 09:20:28 -08:00
2018-02-11 09:20:28 -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-01-29 23:37:19 +01:00
2018-01-19 10:50:12 +01:00
2018-02-26 23:07:39 -08:00
2018-02-11 09:20:28 -08:00
2018-01-30 10:39:39 +01:00
2018-02-11 09:20:28 -08:00
2018-02-17 10:29:14 +01:00
2018-01-27 11:58:27 -08:00
2018-02-11 09:20:28 -08:00
2017-07-11 21:22:00 +02:00
2018-01-20 22:35:38 -08:00
2017-05-02 21:21:37 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-10-08 20:14:39 +02:00
2017-05-02 09:18:47 -07:00
2018-02-17 10:29:14 +01:00
2018-01-30 10:39:39 +01:00
2018-02-11 09:20:28 -08:00
2017-07-26 14:03:29 +02:00
2017-12-07 07:47:19 +01:00
2018-01-30 10:39:39 +01:00
2018-02-11 09:20:28 -08:00
2017-05-02 09:18:47 -07:00
2018-01-30 10:39:39 +01:00
2017-05-02 09:18:47 -07:00
2018-01-30 10:39:39 +01:00
…