various tidyups
This commit is contained in:
@@ -113,13 +113,12 @@ automation:
|
||||
# Re-apply when the openHASP display comes online
|
||||
##########################################################################
|
||||
- trigger: mqtt
|
||||
topic: hasp/openhasp_1/status
|
||||
payload: online
|
||||
topic: "hasp/openhasp_1/LWT"
|
||||
|
||||
actions:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.platform in ['homeassistant', 'mqtt'] }}"
|
||||
value_template: "{{ trigger.platform == 'homeassistant' or (trigger.platform == 'mqtt' and trigger.payload == 'online') }}"
|
||||
then:
|
||||
- delay: "00:00:02"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user