Files
zorruno-homeassistant/automations/quiet_time_settings.yaml
2022-10-11 15:40:40 +13:00

11 lines
300 B
YAML

- id: quiet_time_settings_to_mqtt
alias: Publish quiet time value to mqtt
trigger:
platform: state
entity_id: input_boolean.quiet_time
action:
service: mqtt.publish
data_template:
payload: "{{trigger.to_state.state}}"
topic: viewroad-status/homeassistant/quiet-time