Brewery-Controller/home_assistant/automation.yaml
Chris Giacofei 18538e2e87 Move stuff that doesn't belong to Arduino.
This is just reference for setting up home assistant later.
2022-01-11 09:42:12 -05:00

22 lines
670 B
YAML

- alias: Set BK Input Value
trigger:
platform: mqtt
topic: "brewery/sensor/boil_kettle"
action:
service: input_select.select_option
data:
entity_id: input_select.boil_kettle_pwm
option: "{{ trigger.payload.setpoint }}"
# This automation script runs when the thermostat mode selector is changed.
# It publishes its value to the same MQTT topic it is also subscribed to.
- alias: Set BK PWM
trigger:
platform: state
entity_id: input_select.boil_kettle_pwm
action:
service: mqtt.publish
data:
topic: "brewery/setpoint/bk"
retain: true
payload: "setpoint: {{ states('input_select.thermostat_mode') }}"