Hi,
I am writing some automations to trigger a my hive thermostat to boost the hot water. I have an automation triggered by a button helper and the following MQTT payload works fine:
{
"system_mode_water":"emergency_heating",
"temperature_setpoint_hold_duration_water":"30",
"temperature_setpoint_hold_water":"1"
}
This behaves as I would expect but rather than hard code the temperature_setpoint_hold_duration_water to 30 I would like to get the value from a number helper I have (input_number.hot_water_boost_time). I don’t appear to be able to get this to work, i’m sure i’m missing something obvious. Here is my full automation:
- id: "1696679145506"
alias: Boost Hot Water
description: ""
trigger:
- platform: state
entity_id:
- input_button.boost_hotwater_button
condition: []
action:
- service: mqtt.publish
data:
qos: 0
retain: false
topic: zigbee2mqtt/Boiler Control/set
payload: '{{"system_mode_water":"emergency_heating","temperature_setpoint_hold_duration_water":states("input_number.hot_water_boost_time"), "temperature_setpoint_hold_water":"1"}}'
mode: single
Any help would be much appreciated. Thanks!