Hi,
i want to update a Thermostat when another Thermostat changes be the Setpoint Value.
Can someone help me, i have no idea how to handle that?
Best Regards
Karsten
Hi,
i want to update a Thermostat when another Thermostat changes be the Setpoint Value.
Can someone help me, i have no idea how to handle that?
Best Regards
Karsten
Use a rule.
rule xxx
when
Item thermostat1 changed
then
thermostat2.postupdate(thermostat1.state)
end
Thanks, but VSC shows Error on postupdate and also sendcommand don´t work.
“The method sendcommand(State) is undefined for the type NumberItem”
If the items are type number
thermostat2.postupdate(thermostat1.state as DecimalType)
When i use postUpdate it works but i didn´t change the Value on Thermostat because i think i have to use SendCommand but this didn´t accept a state
Sorry.
thermostat2.postUpdate(thermostat1.state as DecimalType)
or
thermostat2.sendCommand(thermostat1.state as DecimalType)
no Sorry, thanks for your help.
i get an Error by using this: Thermostat_EG_WZ_rechts_Soll.sendCommand(Tado_HEAT_target_temperature.state as DecimalType)
Ambiguous feature call.
The extension methods
sendCommand(Item, Command) in BusEvent and
sendCommand(Item, Number) in BusEvent
both match.
This is teted and works.
Number Tado_HEAT_target_temperature "t2[%s]"
Number Thermostat_EG_WZ_rechts_Soll "t1[%s]"
rule xxx
when
Item Tado_HEAT_target_temperature changed
then
Thermostat_EG_WZ_rechts_Soll.sendCommand(Tado_HEAT_target_temperature.state as DecimalType)
end
sitemap tmp label="TMP" {
Setpoint item=Tado_HEAT_target_temperature
Default item=Thermostat_EG_WZ_rechts_Soll
}
Post you items please.
Now i get it working.
Items:
Number Tado_HEAT_target_temperature “Temperatur soll[%s]” { channel=“xxx” }
Number Thermostat_EG_WZ_rechts_Soll “Temperatur rechts [%s]” (Thermostat, Heizung_Wohnzimmer, EG_wohnzimmer) {channel=“xxx”}
Rule:
rule “Tado Wohnzimmer”
when
Item Tado_HEAT_target_temperature changed
then
Thermostat_EG_WZ_links_Soll.sendCommand(Tado_HEAT_target_temperature.state as Number)
Thermostat_EG_WZ_rechts_Soll.sendCommand(Tado_HEAT_target_temperature.state as Number)
end