Rule triggered with a state of a group problem -

i have am item which is linked to a shelly binding on/off channel and a rule sending ON to this channel on given conditions:

configuration: {}
triggers:
  - id: "1"
    configuration:
      itemName: gLights
      state: ON
    type: core.ItemStateUpdateTrigger
conditions:
  - inputs: {}
    id: "3"
    configuration:
      itemName: Mata_harmonogram
      operator: =
      state: ON
    type: core.ItemStateCondition
  - inputs: {}
    id: "4"
    configuration:
      startTime: 06:00
      endTime: 22:00
    type: core.TimeOfDayCondition
actions:
  - inputs: {}
    id: "2"
    configuration:
      command: ON
      itemName: shellyplus1b0a7324bbe08__Mata_grzewcza_Power
    type: core.ItemCommandAction

The problem is when the rules is enabled it seems to execute the ON command every 30 seconds or so but the item gLights is not changing at all during this time.

2025-10-08 20:24:57.454 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:24:57.457 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:25:00.012 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:25:00.015 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:25:01.957 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Temperatura_wewnatrz' changed from 30.8 °C to 30.7 °C
2025-10-08 20:28:16.690 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:28:16.692 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:28:17.127 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Temperatura_wewnatrz' changed from 30.7 °C to 30.8 °C
2025-10-08 20:28:46.634 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:28:46.637 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:29:16.627 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:29:16.635 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:29:46.634 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:29:46.637 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:30:16.623 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:30:16.626 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:30:46.634 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:30:46.635 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:31:16.650 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:31:16.653 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:31:46.651 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:31:46.654 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:31:48.132 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Sila_Sygnalu' changed from 3 to 4
2025-10-08 20:32:16.636 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:32:16.639 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:32:18.692 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Sila_Sygnalu' changed from 4 to 3
2025-10-08 20:32:46.634 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:32:46.640 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON
2025-10-08 20:33:16.625 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' received command ON
2025-10-08 20:33:16.627 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'shellyplus1b0a7324bbe08__Mata_grzewcza_Power' predicted to become ON


not sure why it is acting so strange.

Group config

label: Grupa swiatel
type: Group
category: ""
groupNames: []
tags: []
groupType: Switch
function:
  name: OR
  params:
    - ON
    - OFF

But you didn’t trigger the rule when gLights changes. You triggered the rule when gLights is updated. I bet the shelly reports the current state of the device to OH every 30 seconds which causes the Group’s state to update too.

An update does not necessarily mean a change.

wrong wording and of course you are as always right and helpful :wink: changed to type: core.ItemStateChangeTrigger = ON and it will work right now.

The polish translation of webgui for rules and trigger names is a bit mesy