Hi all,
i tried several ways but it seems there needs to be some more software engineering done than i think.
I have Sonoff ZigBee Thermostat-Heads that can be set remotely to a certain setpoint temperature.
I do receive the setpoint values if i change directly at the device. so the link is working.
Only to me its unclear how i can SET a setpoint from Openhab.
The Thing looks like this:
Type number : SonoffThermLR_setpoint "Sonoff ThermLR SetPoint [%.1f °C]" [ stateTopic="/z2m/Sonoff_ThermLR", transformationPattern="JSONPATH:$.occupied_heating_setpoint" ]
The Item as follows:
Number SonoffThermLR_setpoint "Sonoff ThermLR SetPoint [%.1f °C]" <radiator> (MyHeating) { channel="mqtt:topic:mosquitto:z2m:SonoffThermLR_setpoint"}
In rule and a switch item i tried the following, but it does not work and seems to not send anything back…
rule "Heater TempSelect Switch"
when
Item LRsel_Switch received command
then
switch(receivedCommand) {
case OFF : SonoffThermLR_setpoint.sendCommand(10)
case ON : SonoffThermLR_setpoint.sendCommand(28)
}
end
PLEASE, highly appreciate your feedback on how to make this happen…