I just changed the rule to use the temperature sensor in our living room insted.
This is what happened, (had to set lux to less than 0, because its dark outside now).
2018-08-17 22:08:38.764 [ome.event.ItemCommandEvent] - Item 'dummy1' received command OFF
2018-08-17 22:08:38.773 [vent.ItemStateChangedEvent] - dummy1 changed from ON to OFF
2018-08-17 22:08:43.184 [INFO ] [pse.smarthome.model.script.StuenTemp] - 25.00
2018-08-17 22:08:43.190 [INFO ] [g.eclipse.smarthome.model.script.Lux] - 0
2018-08-17 22:08:43.195 [INFO ] [eclipse.smarthome.model.script.Alarm] - OFF
2018-08-17 22:08:43.201 [INFO ] [eclipse.smarthome.model.script.debug] - First table clause
2018-08-17 22:08:43.208 [INFO ] [eclipse.smarthome.model.script.debug] - Choose VeluxAlleAaben100
2018-08-17 22:08:43.220 [INFO ] [ipse.smarthome.model.script.skylight] - Sending ON command to VeluxAlleAaben100 because Temp = 25.00 Lux = 0 and Alarm = OFF
2018-08-17 22:08:43.226 [ome.event.ItemCommandEvent] - Item 'VeluxAlleAaben100' received command ON
2018-08-17 22:08:47.303 [INFO ] [ding.velux.bridge.VeluxBridgeExecute] - execute() finished successfully.
This looks right… And while writing this message… This happened:
2018-08-17 22:11:05.473 [vent.ItemStateChangedEvent] - stue_Temperature changed from 25.00 to 24.90
2018-08-17 22:11:05.504 [INFO ] [pse.smarthome.model.script.StuenTemp] - 24.90
2018-08-17 22:11:05.510 [INFO ] [g.eclipse.smarthome.model.script.Lux] - 0
2018-08-17 22:11:05.514 [INFO ] [eclipse.smarthome.model.script.Alarm] - OFF
2018-08-17 22:11:05.522 [INFO ] [eclipse.smarthome.model.script.debug] - First table clause
2018-08-17 22:11:05.532 [INFO ] [eclipse.smarthome.model.script.debug] - Choose VeluxAlleAaben75
2018-08-17 22:11:05.548 [INFO ] [ipse.smarthome.model.script.skylight] - Sending ON command to VeluxAlleAaben75 because Temp = 24.90 Lux = 0 and Alarm = OFF
2018-08-17 22:11:05.553 [ome.event.ItemCommandEvent] - Item 'VeluxAlleAaben75' received command ON
2018-08-17 22:11:09.644 [INFO ] [ding.velux.bridge.VeluxBridgeExecute] - execute() finished successfully.
VeluxAlleAaben75… Due to temperature beeing below 25 degrees. This seems to be working just as it should…
So I´m pretty sure, using the Netamo value is NOT a good idea.
EDIT:
just to make sure… I changed the criteria of Lux to < 30. And then triggered the rule manually again… This happened:
2018-08-17 22:16:47.147 [ome.event.ItemCommandEvent] - Item 'dummy1' received command ON
2018-08-17 22:16:47.171 [vent.ItemStateChangedEvent] - dummy1 changed from OFF to ON
2018-08-17 22:16:49.338 [INFO ] [pse.smarthome.model.script.StuenTemp] - 24.70
2018-08-17 22:16:49.344 [INFO ] [g.eclipse.smarthome.model.script.Lux] - 0
2018-08-17 22:16:49.348 [INFO ] [eclipse.smarthome.model.script.Alarm] - OFF
2018-08-17 22:16:49.353 [INFO ] [eclipse.smarthome.model.script.debug] - Second table clause
2018-08-17 22:16:49.369 [INFO ] [ipse.smarthome.model.script.skylight] - Sending ON command to VeluxAlleVent because Temp = 24.70 Lux = 0 and Alarm = OFF
2018-08-17 22:16:49.374 [ome.event.ItemCommandEvent] - Item 'VeluxAlleVent' received command ON
2018-08-17 22:16:53.484 [INFO ] [ding.velux.bridge.VeluxBridgeExecute] - execute() finished successfully.
I´m convinced… Don´t use Netamo temperature values in a rule.