2024.6.2 - Error with helper that adds a load of sensors together since update

This one is in the logs, but does not seems to be causing an issue.

I have a helper that adds up all the power monitoring devices and the powercalc devices in the house - so a sensor called sensor.monitored.total.

This is throwing this since the update -

Logger: homeassistant.helpers.event
Source: helpers/event.py:335
First occurred: 14 June 2024 at 19:03:20 (621 occurrences)
Last logged: 08:03:28

  • Error while dispatching event for sensor.kitchen_bench to <Job track state_changed event [‘sensor.hot_water_power’, ‘sensor.power_1’, ‘sensor.air_con_power’, ‘sensor.washing_machine_power’, ‘sensor.dryer_power’, ‘sensor.mediapc_power’, ‘sensor.hot_plates’, ‘sensor.fridge_power’, ‘sensor.garage_fridge_power’, ‘sensor.lounge_lights_power’, ‘sensor.google_homes_power’, ‘sensor.lounge_front_power’, ‘sensor.cameron_power_power’, ‘sensor.tallons_googletv_power’, ‘sensor.cobys_googletv_power’, ‘sensor.lounge_rear_power’, ‘sensor.garage_corner_power’, ‘sensor.coffee_machine_power’, ‘sensor.unraid_backup_power_cc’, ‘sensor.brittany_bedside_power’, ‘sensor.cameron_bedside_power’, ‘sensor.bedroom1_underbed_power’, ‘sensor.media_back_power’, ‘sensor.tallons_light_power’, ‘sensor.camerons_light_power’, ‘sensor.dining_light_power’, ‘sensor.master_bedroom_light_power’, ‘sensor.back_garden_lights_power’, ‘sensor.water_feature_power’, ‘sensor.alarm_dyson_power’, ‘sensor.side_camera_power_power’, ‘sensor.microwave_power’, ‘sensor.oven’, ‘sensor.brittanys_googletv_power’, ‘sensor.lounge_camera_power’, ‘sensor.coby_power_power’, ‘sensor.dishwasher_power’, ‘sensor.media_tv_power’, ‘sensor.ups_watts’, ‘sensor.garage_door_power’, ‘sensor.kitchen_bench’] HassJobType.Callback <bound method MinMaxSensor._async_min_max_sensor_state_listener of >>

Last line cut off - HassJobType.Callback <bound method MinMaxSensor._async_min_max_sensor_state_listener of >>

This has happened almost 4000 times since update -

What has caused this ‘maximum recursion depth exceeded’ to start now ? Has to be the update to 2024.6.x right ?

I wonder if this also relates to the two sensors that use this value - as they are not updating - reported in another thread.

So - I think its fixed. There was something in this new update release that highlighted an issue with my config. I had the kithcen bench power in a sum with all the others as a helper, then I had another helper that had the kitchen bench in again as a to to something it was already in - so it was in two helpers.

This has been in there incorrect for a while I guess - and the system was allowing it to be counted twice. but this release stopped that from being allowed and threw the above error (not a great help but forced me to look in detail of the helper).

And my other issue reported with the import and export sensors not updating - this used the same helper in their calculations - so thats why they failed to update after a few seconds - again - this was introduced with this later release.

Hello,

@vwkombi can you elaborate a bit on that? I have the same issue using powercalc.
If I understand well, you had an issue in your config which only manifested with the new HA version.
So you had the kitchen bench in two helpers. What does that mean?

Greetings,
Hendrik

I may not have documented it well. I had a helper that listed the same sensor in another calc that was then used in this one. Which was allowed (prob erroneously) and then later update caused the ussue. I just had to remove the sensor from the helper