I have one rule if no one at home it should turn off all lights and lock the door, but it turns off the “fridge” in the office too and I don’t know why.
This is the rule:
//****************************************************************************************
// If no one is at home lock the door and turn off all the light
//****************************************************************************************
rule "Lock door if no one is at home"
when
Item Smartphones changed from ON to OFF
then
Hallway_Lock_Nuki.sendCommand(ON)
gLights.sendCommand(OFF)
end
And this is the Group “gLights”:
And the item of the office fridge is:
Office_Power_Fridge_Osram
So you can clearly see that the “gLights” group doesn’t have this item.
But in the logs I see this after the rule fires (see bold entries):
2020-01-27 16:55:28.328 [GroupItemStateChangedEvent] - Smartphones changed from ON to OFF through TinaSmartphone_AtHome
2020-01-27 16:55:28.345 [ome.event.ItemCommandEvent] - Item ‘Hallway_Lock_Nuki’ received command ON
2020-01-27 16:55:28.384 [ome.event.ItemCommandEvent] - Item ‘gLights’ received command OFF
2020-01-27 16:55:28.385 [nt.ItemStatePredictedEvent] - Hallway_Lock_Nuki predicted to become ON
2020-01-27 16:55:28.413 [ome.event.ItemCommandEvent] - Item ‘LivingRoom_Lamp_TV_Left_Hue’ received command OFF
2020-01-27 16:55:28.415 [ome.event.ItemCommandEvent] - Item ‘LivingRoom_Lamp_TV_Right_Hue’ received command OFF
2020-01-27 16:55:28.475 [ome.event.ItemCommandEvent] - Item ‘Bedroom_Light_Right_Hue’ received command OFF
2020-01-27 16:55:28.476 [ome.event.ItemCommandEvent] - Item ‘LivingRoom_Light_TV_Board_Hue’ received command OFF
2020-01-27 16:55:28.476 [ome.event.ItemCommandEvent] - Item ‘Office_Light_Hue’ received command OFF
2020-01-27 16:55:28.477 [ome.event.ItemCommandEvent] - Item ‘Office_Lightstrip_Hue’ received command OFF
2020-01-27 16:55:28.477 [ome.event.ItemCommandEvent] - Item ‘Bathroom_Light_Hue’ received command OFF
2020-01-27 16:55:28.478 [ome.event.ItemCommandEvent] - Item ‘Kitchen_Light_hue’ received command OFF
2020-01-27 16:55:28.478 [ome.event.ItemCommandEvent] - Item ‘LivingRoom_Light_Couch_Hue’ received command OFF
2020-01-27 16:55:28.479 [vent.ItemStateChangedEvent] - Hallway_Lock_Nuki changed from OFF to ON
2020-01-27 16:55:28.479 [vent.ItemStateChangedEvent] - Hallway_LockState_Nuki changed from 3 to 4
2020-01-27 16:55:28.479 [nt.ItemStatePredictedEvent] - LivingRoom_Lamp_TV_Left_Hue predicted to become OFF
2020-01-27 16:55:28.480 [nt.ItemStatePredictedEvent] - LivingRoom_Lamp_TV_Right_Hue predicted to become OFF
2020-01-27 16:55:28.480 [nt.ItemStatePredictedEvent] - Bedroom_Light_Right_Hue predicted to become OFF
2020-01-27 16:55:28.480 [nt.ItemStatePredictedEvent] - LivingRoom_Light_TV_Board_Hue predicted to become OFF
2020-01-27 16:55:28.481 [nt.ItemStatePredictedEvent] - Office_Light_Hue predicted to become OFF
2020-01-27 16:55:28.481 [nt.ItemStatePredictedEvent] - Office_Lightstrip_Hue predicted to become OFF
2020-01-27 16:55:28.481 [nt.ItemStatePredictedEvent] - Bathroom_Light_Hue predicted to become 46,56,0
2020-01-27 16:55:28.482 [nt.ItemStatePredictedEvent] - Kitchen_Light_hue predicted to become OFF
2020-01-27 16:55:28.482 [nt.ItemStatePredictedEvent] - LivingRoom_Light_Couch_Hue predicted to become OFF
2020-01-27 16:55:33.591 [vent.ItemStateChangedEvent] - Kitchen_Power_Fountain_Osram changed from ON to OFF
2020-01-27 16:55:39.614 [vent.ItemStateChangedEvent] - Office_Power_Fridge_Osram changed from ON to OFF
2020-01-27 16:55:41.251 [vent.ItemStateChangedEvent] - Hallway_LockState_Nuki changed from 4 to 1
So can anybody help and give me some tips how I can find why the item “Office_Power_Fridge_Osram” is changed to OFF?