issues
search
jackjohnsonuk
/
homeassistant-config
46
stars
6
forks
source link
Save state of Dishwasher
#25
Open
jackjohnsonuk
opened
6 years ago
jackjohnsonuk
commented
6 years ago
automation:
alias: save_binary_sensor_state initial_state: 'on' hide_entity: true trigger:
platform: state entity_id:
binary_sensor.sensor1
binary_sensor.sensor2
binary_sensor.sensor3 condition:
condition: template value_template: "{{ trigger.to_state.state != '' }}" action:
service: mqtt.publish data_template: topic: "home-assistant/{{ trigger.event.data.entity_id|replace('.', '/') }}" payload: "{{ trigger.to_state.state }}" retain: true
automation: