Add if to automation
This commit is contained in:
parent
046c5653cb
commit
2a11d02fe4
8 changed files with 275 additions and 11 deletions
|
@ -14,7 +14,7 @@ CONF_TOPIC = 'mqtt_topic'
|
|||
CONF_PAYLOAD = 'mqtt_payload'
|
||||
|
||||
|
||||
def register(hass, config, action):
|
||||
def trigger(hass, config, action):
|
||||
""" Listen for state changes based on `config`. """
|
||||
topic = config.get(CONF_TOPIC)
|
||||
payload = config.get(CONF_PAYLOAD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue