Automation - In 'state' condition: unknown entity group.devices

Good day everyone,

I have a strange logging behavior for one of my automations. Unfortunately, I cannot say since when this happens, but this should come up since one of the last updates. My system is runnig for years now and this automation is also this old. But to the point, here is my configuration:

Automations:

- alias: anwesenheit_jemand_da
  trigger:
    - platform: homeassistant
      event: start
    - platform: state
      entity_id: group.anwesenheit_devices
  #   to: 'home'
  #   from: 'not_home'
  condition:
    - condition: state
      entity_id: group.anwesenheit_devices
      state: 'home'
  action:
    - service: knx.send
      data:
        address: '99/99/99'
        payload: true

- alias: anwesenheit_keiner_da
  trigger:
    - platform: homeassistant
      event: start
    - platform: state
      entity_id: group.anwesenheit_devices
  #   to: 'not_home'
  #   from: 'home'
  condition:
    - condition: state
      entity_id: group.anwesenheit_devices
      state: 'not_home'
  action:
    - service: knx.send
      data:
        address: '99/99/99'
        payload: false

and the group:

anwesenheit_devices:
  name: Anwesenheit
  entities:
    - device_tracker.my_wifes_device
    - device_tracker.my_daughters_device
    - device_tracker.my_device
    - input_select.anwesenheit

Everything works fine. If all devices are offline/gone, the automation is setting my knx address to false and the other way around also works.

But in my log there shows the following:

2022-08-09 21:28:13.793 WARNING (MainThread) [homeassistant.components.automation] Error evaluating condition in 'anwesenheit_jemand_da':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity group.anwesenheit_devices
2022-08-09 21:28:13.796 WARNING (MainThread) [homeassistant.components.automation] Error evaluating condition in 'anwesenheit_keiner_da':
In 'condition':
  In 'state':
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices
    In 'state' condition: unknown entity group.anwesenheit_devices

the line

    In 'state' condition: unknown entity group.anwesenheit_devices

repeats randomly from time to time. Sometimes it is silent for hours and another time, it repeats every 30 seconds for 10 times and is silent again.

Maybe anyone has seen this or any clue, how to solve this :slight_smile:

Thanks and have a nice one
Timo

Aside from 99/99/99 being an invalid Knx group address this looks fine to me. :upside_down_face:

:slight_smile: I anonymized it a little.

Like I said, it is working fine, but the log entries will show up from time to time.

Does group.anwesenheit_devices exist in the list of entities in Developer Tools → States?

Hey @tom_l ,
sorry for the late reply.
Indeed it exists: