Add device automation action (#26455)

* Add support for device actions, with light as example.

* Add translation; return list
This commit is contained in:
Erik Montnemery
2019-09-06 01:26:22 +02:00
committed by Paulus Schoutsen
parent 23fdc04554
commit b1c2a5fa08
8 changed files with 274 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
"""Constants for device automations."""
CONF_IS_OFF = "is_off"
CONF_IS_ON = "is_on"
CONF_TOGGLE = "toggle"
CONF_TURN_OFF = "turn_off"
CONF_TURN_ON = "turn_on"