When i “Run” it from a play button in web gui it works, but when i change FP_sensor_motion item from OFF TO ON, there rule is not firing at all. Its quite easy, not sure what is happening. Tried to debug with:
but logs are empty during changing the FP_senso_motion item.
2025-09-09 19:15:42.467 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from ON to OFF 2025-09-09 19:15:43.070 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command ON
2025-09-09 19:15:43.081 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from OFF to ON
2025-09-09 19:15:43.541 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command OFF
2025-09-09 19:15:43.545 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from ON to OFF
2025-09-09 19:15:43.702 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command ON
2025-09-09 19:15:43.705 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from OFF to ON
2025-09-09 19:15:43.875 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command OFF
2025-09-09 19:15:43.877 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from ON to OFF
2025-09-09 19:15:44.036 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command ON
2025-09-09 19:15:44.039 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from OFF to ON
2025-09-09 19:15:44.189 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command OFF
2025-09-09 19:15:44.193 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from ON to OFF
2025-09-09 19:15:44.333 [INFO ] [openhab.event.ItemCommandEvent ] - Item ‘FP_sensor_motion’ received command ON
2025-09-09 19:15:44.340 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘FP_sensor_motion’ changed from OFF to ON
First of all, please use code fences, otherwise your code becomes unreadable. Especially if it is YAML which highly depends on the text idents
Your code goes here, e.g.:
configuration: {}
triggers:
id: “1”
configuration:
itemName: FP_sensor_motion
command: ON
type: core.ItemCommandTrigger
...
It seems to me as either there’s an empty condition, or the square is also something interpreted as another symbole by the forum (that’s why code fences are important as well )
Note, this rule has nothing to do with Rules DSL. It’s just a “Simple UI Rule” and it doesn’t use any rules language at all. It’s executed natively by the rules engine.
Your original rule and the rule you posted in code fences are different. The original is configured to trigger only for ON commands. The new one is configured to trigger only on changes to the state ON.
As for the action, just to ensure there isn’t something going wrong with the playing of the sound, just send a command to a test Item.
Yes indeed i change the rule trying to check other possibilities, but no option is working for me. I notice a strange bevahiour of bundles right now, some of them are missing and i am not able to install them from the GUI. not sure what is happening but maybe problem of the rule is somehow connected. I rebooted, cleared the cache and want to see if i get back the addons which were installed earlier
Ok sorry for bothering you, it was not a problem with the rule. Something bad happen with the whole instance, clearing cache and rebooted and it’s running ok. The rules is firing right now without a problem