I have a simple use case:
- got an Switch-item, when there’s movement in front of my house
- got an Switch-item, which states “it’s dark outside”
- if there’s movement and it’s dark, the lights (switch-item) should go on
That’s the very simple rule:
configuration: {}
triggers:
- id: "1"
configuration:
command: ON
itemName: DB_Motion
type: core.ItemCommandTrigger
conditions:
- inputs: {}
id: "2"
configuration:
itemName: StateDarkoutside
state: ON
operator: =
type: core.ItemStateCondition
actions:
- inputs: {}
id: "3"
configuration:
command: ON
itemName: KNX_EntranceLight
type: core.ItemCommandAction
But it won’t trigger like ever? What do I miss here?
I could put it in a script instead of that simple UI-rule (and it works that way), but I’d like to know, what I didn’t count in here?
Here’s some logs for it:
2022-11-18 16:36:00.042 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'StateDarkoutside' received command ON
2022-11-18 16:36:00.045 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'StateDarkoutside' changed from OFF to ON
...
2022-11-18 19:53:58.019 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DB_Motion' changed from OFF to ON