Temperature rule does not fire

  • Platform information:
    • Hardware:Virtual on Synology DS916
    • OS: Debian 9
    • Java Runtime Environment: openjdk version “1.8.0_265”
    • openHAB version:2.5.8-1

Hello, my name is Bastian and I just started on Openhab. In my first little setup I am using a Shelly H/T via MQTT (internal broker) and a Homematic IP thermostat (HmIP-eTRV-B) via Rasberrymatic. I am getting values and am able to control the thermostat via sendcommand in the console and via BasicUI. The next step was to create a rule that will turn on the thermostat, when the temperature from the shelly drops below a value.

Here is my configured rule and item:
Items:

//Shelly H/T
Number:Temperature StubeTemp “Raum Temperatur” (LivingRoom_GF) {channel=“mqtt:topic:8be44631:Stubetemp”}

Number:Dimensionless StubeHumidity “Raum Luftfeuchte [%.1f %%]” (LivingRoom_GF) {channel=“mqtt:topic:8be44631:Stubehumidity”}

Number:Dimensionless StubeBattery “H/T Batterie [%.1f %%]” (LivingRoom_GF) {channel=“mqtt:topic:8be44631:Stubebattery”}

and

//Thermostat Stube Homematic
Switch Stubethermolevelsw “Ein/Aus” (LivingRoom_GF) {channel=“homematic:HmIP-eTRV-B:3014F711A061A7DA498F9F9A:00201BE99339CC:1#LEVEL”}

I found a simple rule in the turtorial which I wanted to test

Rule:

rule “Stube_temp”

when

Item StubeTemp received update

then

if(StubeTemp.state < 26) {

    Stubethermolevelsw.sendCommand(ON)

}

else {

    Stubethermolevelsw.sendCommand(OFF)

}

end

When I mouseover the items in Visual Studio Code I can see the correct values and states.

I tried to change StubeTemp via the console to 22. smarthome:send StubeTemp (22) but nothing happens. When I send smarthome:send Stubethermolevelsw ON the valve is opening to 100.

Here are some eventlogs:

2020-10-18 15:30:19.026 [ome.event.ItemCommandEvent] - Item 'StubeTemp' received command 30 2020-10-18 15:30:19.029 [nt.ItemStatePredictedEvent] - StubeTemp predicted to become 30 2020-10-18 15:30:19.066 [ome.event.ItemCommandEvent] - Item 'Stubethermolevelsw' received command OFF 2020-10-18 15:30:19.068 [vent.ItemStateChangedEvent] - StubeTemp changed from 23.0 °C to 30.0 °C 2020-10-18 15:30:19.071 [nt.ItemStatePredictedEvent] - Stubethermolevelsw predicted to become OFF 2020-10-18 15:30:46.998 [ome.event.ItemCommandEvent] - Item 'StubeTemp' received command 22 2020-10-18 15:30:47.006 [nt.ItemStatePredictedEvent] - StubeTemp predicted to become 22 2020-10-18 15:30:47.042 [ome.event.ItemCommandEvent] - Item 'Stubethermolevelsw' received command OFF 2020-10-18 15:30:47.044 [vent.ItemStateChangedEvent] - StubeTemp changed from 30.0 °C to 22.0 °C 2020-10-18 15:30:47.051 [nt.ItemStatePredictedEvent] - Stubethermolevelsw predicted to become OFF

regards
Bastian

1 Like

See

1 Like

Thank you for the quick answer @rossko57, that did it. I was totally looking at the wrong places :blush: