22 lines
670 B
YAML
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') }}" |