2021-12-16 00:54:36.046 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Switch_Lichtszene’ received command ON
2021-12-16 00:54:36.048 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Switch_Lichtszene’ predicted to become ON
2021-12-16 00:54:36.057 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Nachttischlampe_Farbe’ received command 31,100,100
2021-12-16 00:54:36.061 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Schlafzimmerlampe_Farbe’ received command 44,73,54
2021-12-16 00:54:36.062 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Switch_Lichtszene’ changed from OFF to ON
2021-12-16 00:54:36.062 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Nachttischlampe_Farbe’ predicted to become 31,100,100
2021-12-16 00:54:36.064 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Schlafzimmerlampe_Farbe’ predicted to become 44,73,54
2021-12-16 00:54:36.066 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Nachttischlampe_Farbe’ changed from 31,100,0 to 31,100,100
2021-12-16 00:54:36.067 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Schlafzimmerlampe_Farbe’ changed from 43,72,0 to 44,73,54
2021-12-16 00:54:40.190 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Schlafzimmerlampe_Farbe’ changed from 44,73,54 to 43,72,54
2021-12-16 00:54:40.195 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Nachttischlampe_Farbe’ changed from 31,100,100 to 31,100,88
2021-12-16 00:54:40.197 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Switch_Nachttischlampe’ changed from OFF to ON
2021-12-16 00:54:40.871 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Switch_Lichtszene’ received command OFF
2021-12-16 00:54:40.872 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Switch_Lichtszene’ predicted to become OFF
2021-12-16 00:54:40.880 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Nachttischlampe_Farbe’ received command OFF
2021-12-16 00:54:40.882 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Schlafzimmerlampe_Farbe’ received command OFF
2021-12-16 00:54:40.883 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Switch_Lichtszene’ changed from ON to OFF
2021-12-16 00:54:40.884 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Nachttischlampe_Farbe’ predicted to become OFF
2021-12-16 00:54:40.886 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Schlafzimmerlampe_Farbe’ predicted to become OFF
2021-12-16 00:54:40.887 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Nachttischlampe_Farbe’ changed from 31,100,88 to 31,100,0
2021-12-16 00:54:40.888 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Schlafzimmerlampe_Farbe’ changed from 43,72,54 to 43,72,0
2021-12-16 00:54:48.283 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Switch_Lichtszene’ received command ON
2021-12-16 00:54:48.287 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Switch_Lichtszene’ predicted to become ON
2021-12-16 00:54:48.291 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Nachttischlampe_Farbe’ received command 31,100,100
2021-12-16 00:54:48.295 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘Schlafzimmerlampe_Farbe’ received command 44,73,54
2021-12-16 00:54:48.296 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Switch_Lichtszene’ changed from OFF to ON
2021-12-16 00:54:48.298 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Nachttischlampe_Farbe’ predicted to become 31,100,100
2021-12-16 00:54:48.302 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item ‘Schlafzimmerlampe_Farbe’ predicted to become 44,73,54
2021-12-16 00:54:48.306 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Nachttischlampe_Farbe’ changed from 31,100,0 to 31,100,100
2021-12-16 00:54:48.307 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Schlafzimmerlampe_Farbe’ changed from 43,72,0 to 44,73,54
2021-12-16 00:54:50.237 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Schlafzimmerlampe_Farbe’ changed from 44,73,54 to 43,72,54
2021-12-16 00:55:00.285 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Nachttischlampe_Farbe’ changed from 31,100,100 to 31,100,0
2021-12-16 00:55:00.289 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Switch_Nachttischlampe’ changed from ON to OFF
2021-12-16 00:55:00.290 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Switch_Lichtszene’ changed from ON to OFF
That is my logfile.
Switch_lichtszene is an item i build Which turns on/off, when i press the Button on the dashboard.
Nachttischlampe_Farbe is an item which is a channel of my nachttischlampe thing (a hue bulb)
The Same goes for schlafzimmerlampe_farbe.
When the dashboard Button is pushed, the switch item (switch_lichtszene) turns on.
triggers:
- id: “1”
configuration:
itemName: Switch_Lichtszene
command: OFF
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: “2”
configuration:
itemName: Nachttischlampe_Farbe
command: OFF
type: core.ItemCommandAction
- inputs: {}
id: “3”
configuration:
itemName: Schlafzimmerlampe_Farbe
command: OFF
type: core.ItemCommandAction
This rule does, that both items(nachttischlampe_farbe and schlafzimmerlampe_farbe) turn off, when the switch (switch_lichtszene) is turned off
triggers:
- id: “1”
configuration:
itemName: Switch_Lichtszene
command: ON
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: “2”
configuration:
itemName: Nachttischlampe_Farbe
command: 31,100,100
type: core.ItemCommandAction
- inputs: {}
id: “3”
configuration:
itemName: Schlafzimmerlampe_Farbe
command: 44,73,54
type: core.ItemCommandAction
This rule sets both items(nachttischlampe_farbe and schlafzimmerlampe_farbe) to a specific value which results an colors and brightness.
At 00.55.00.289 (second Last Entry) you See, that I turned off the Lamp (which is also an item in Openhab, Nachttischlampe_color) manually via Mobile App.
Then(Last entry) it turns off my switch (switch _lichtszene ) automatically although the Lamp (schlafzimmerlampe_color item) is still on
But I want the Switch (Switch_lichtszene) to Star On, if there is at least on Lamp on