Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (18 sloc) 626 Bytes
automation:
##############################################################################
# Auto update firmware at 3:00am every day if a new version is available
- alias: hasp_plate01_00_AutoFirmwareUpdate
trigger:
- platform: time
at: '3:00:00'
condition:
- condition: template
value_template: '{{ states.sensor.plate01_status.attributes.updateESPAvailable == true }}'
- condition: state
entity_id: 'binary_sensor.plate01_connected'
state: 'on'
action:
- service: mqtt.publish
data_template:
topic: 'hasp/plate01/command/espupdate'
payload: ''
You can’t perform that action at this time.