Closed Paul-Vdp closed 10 months ago
Same issue here for official 2023.12. Please help fixing this! Thanks!
I confirm, i'm going back to 2023.11.3 version
I had issues in 2023.12, rolling back to 2023.11.3 solved them.
One of my entity controllers would stay stuck forever in an 'active' state - I coulnd't figure out why. Others would work fine. Here's the config of the one messing around:
# Motion Activated Stair Lights
stairs_motion_light:
# Sensor Config
sensor:
- binary_sensor.stairs_occupancy
sensor_type: duration
delay: 1
block_timeout: 360
# Observable Entity
entity: light.stairs_led
state_attributes_ignore:
- brightness
- color_temp
# Extra Actions
trigger_on_activate: script.toggle_the_stairs
trigger_on_deactivate: script.turn_off_stairs_smoothly
I'm using scripts because depending on external sensorsI like my lights to behave one way or another
I dont know if its related I found an issue in one my blueprints where json wasn't being handled correctly post update - any chance this is related?
Yes, same here. I have quite a few rooms using EC, some still work perfectly but others just don't turn the lights on even though the controlling motion detectors show motion. Very strange, this is day two so I guess I'll roll back a version and see.
Yes, returned to 11.3 and working again.
Same here
Same issue. EC stopped working. This is painful, I relied a lot of this good component. I am not so sure that this component is still maintained.
@danobot Hi Daniel, Any chance of a solution (soon ...), or must we all say goodbye to our beloved EC, and frantically start searching for an alternative ? Hoping for the best, but preparing for the worst ?
There is always a chance for a solution ... just depends how long you want to wait ... I dont really think .12 added much over .11
12.1 fixed an issue I had with one of my blueprints so keep your fingers crossed
Strangely, one of my three entity controllers is still working ok! The other two are not.
On Sun, 10 Dec 2023, 12:16 Jeef, @.***> wrote:
There is always a chance for a solution ... just depends how long you want to wait ... I dont really think .12 added much over .11
12.1 fixed an issue I had with one of my blueprints so keep your fingers crossed
— Reply to this email directly, view it on GitHub https://github.com/danobot/entity-controller/issues/316#issuecomment-1848948254, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANP4WKL65QZG6M7UBI2TDETYIWRZDAVCNFSM6AAAAABAJU3KHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYHE2DQMRVGQ . You are receiving this because you commented.Message ID: @.***>
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor:
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
Thank you! That worked for me and it showed why one of my three controllers wasn't affected.
On Sun, 10 Dec 2023, 19:21 jddayley, @.***> wrote:
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity, I listed them under their respective types: sensor:
- binary_sensor.storage_motion entity:
- switch.storage
VS: sensor: binary_sensor.storage_motion entity: switch.storage
— Reply to this email directly, view it on GitHub https://github.com/danobot/entity-controller/issues/316#issuecomment-1849057077, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANP4WKNPYNRF25JF6F7AMR3YIYDUBAVCNFSM6AAAAABAJU3KHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGA2TOMBXG4 . You are receiving this because you commented.Message ID: @.***>
@jddayley thank you very much for figuring this out, updated all my configs to use list style and updated core to 2023.12.1 everything works as expected.
wondering if this actually a bug or a feature?
@jddayley I did some quick tests and it does indeed seem to solve it. I'll do further testing this afternoon.
If I remember correctly, they recently introduced config processing and error handling to the HA Core - this might've had a side effect on EC...
What about the other features ? I have now the following setting:
automation_motion_garage:
sensor: binary_sensor.groupe_capteurs_mvt_garage
entity: light.lumiere_garage_switch
delay: 60
sensor_type: duration
block_timeout: 30
What should be the way to write the whole paragraph ?
automation_motion_garage: sensor: binary_sensor.groupe_capteurs_mvt_garage entity: light.lumiere_garage_switch delay: 60 sensor_type: duration
sensor_resets_timer: True
block_timeout: 30
Sensor and entities as lists, so:
automation_motion_garage:
sensor:
- binary_sensor.groupe_capteurs_mvt_garage
entity:
- light.lumiere_garage_switch
delay: 60
sensor_type: duration
# sensor_resets_timer: True
block_timeout: 30
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
Confirmed as a workaround. Many thanks!
Something broked at config processing, entities became list of characters instead of strings.
Here debug entry from 2023.12:
2023-12-11 11:53:25.789 DEBUG (MainThread) [custom_components.entity_controller.bathroom_motion_light] Sensor Entities ['b', 'i', 'n', 'a', 'r', 'y', '_', 's', 'e', 'n', 's', 'o', 'r', '.', 'm', 'o', 't', 'i', 'o', 'n', '_', 'd', 'e', 't', 'e', 'c', 't', 'o', 'r', '_', 'z', 'h', 'a', '_', 'i', 'a', 's', 'z', 'o', 'n', 'e']
2023-12-11 11:53:25.789 DEBUG (MainThread) [custom_components.entity_controller.bathroom_motion_light] Control Entities: ['l', 'i', 'g', 'h', 't', '.', 'b', 'a', 't', 'h', 'r', 'o', 'o', 'm', '_', 'l', 'i', 'g', 'h', 't', 's']
2023-12-11 11:53:25.789 DEBUG (MainThread) [custom_components.entity_controller.bathroom_motion_light] State Entities: ['l', 'i', 'g', 'h', 't', '.', 'b', 'a', 't', 'h', 'r', 'o', 'o', 'm', '_', 'l', 'i', 'g', 'h', 't', 's']
and from 2023.10
2023-12-11 14:47:24.133 DEBUG (MainThread) [custom_components.entity_controller.bathroom_motion_light] Sensor Entities ['binary_sensor.motion_detector_zha_iaszone']
2023-12-11 14:47:24.133 DEBUG (MainThread) [custom_components.entity_controller.bathroom_motion_light] Control Entities: ['light.bathroom_lights']
2023-12-11 14:47:24.133 DEBUG (MainThread) [custom_components.entity_controller.bathroom_motion_light] State Entities: ['light.bathroom_lights']
Hello!
I wanted to add something to the fix following my own tests at home.
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
If your setup uses 'trigger_on_activate' and 'trigger_on_deactivate', both have to be set as lists too.
Core moved to orjson from strict json - probably a yaml parsing error with the new lib
https://github.com/home-assistant/core/issues/105309 https://github.com/home-assistant/core/issues/105323
I'm guessing something here is related. If you can figure iut out they can get it fixed fast
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
Just for interest, Mine is in a list format: Always has been, but only - binary_sensor.philips_hallway_motion_occupancy triggers the lights, the others are ignored.
motion_light: # serves as a name
sensor:
- binary_sensor.philips_hallway_motion_occupancy # required, [sensors]
- binary_sensor.konnected_7e1888_zone_2
- binary_sensor.konnected_7e1888_zone_3
- binary_sensor.pad_door_contact
entity:
- light.first_hallway_lamp```
I would turn on debugging and share the output.
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
Just for interest, Mine is in a list format: Always has been, but only - binary_sensor.philips_hallway_motion_occupancy triggers the lights, the others are ignored.
motion_light: # serves as a name sensor: - binary_sensor.philips_hallway_motion_occupancy # required, [sensors] - binary_sensor.konnected_7e1888_zone_2 - binary_sensor.konnected_7e1888_zone_3 - binary_sensor.pad_door_contact entity: - light.first_hallway_lamp```
the problem reflects on the parsing completely, attribute doesn't matter.. so use list for entities too.. it will work.. You also have to use the plural -> sensors
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
this should definitely be defined in plural ->
sensors:
- binary_sensor.storage_motion
entities:
- switch.storage
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
That worked for me too! Thanks a lot @dominicusmento !
Just for the records. If there is only one sensor/entity I use singular notation (with a -)
storage_motion:
sensor:
- binary_sensor.storage_motion
sensor_type: duration
sensor_resets_timer: true
entity:
- light.storage_downlights
and plural notation if there are multiple values
attic_motion:
sensors:
- binary_sensor.attic_motion
- binary_sensor.everything_presence_one_pir
- binary_sensor.attic_presence_enhancer
sensor_type: duration
sensor_resets_timer: true
entity:
- light.attic_battons
sorry don't currently use multiple entites
Technically, you are wrong.. by defining an array (list) in yaml, you should always use plural; doesn't matter how many records are there in it.. and you did it by changing this:
entity: light.attic_battons
to this:
entity:
- light.attic_battons
https://www.baeldung.com/spring-boot-yaml-list#quick-recap-about-lists-in-yaml
If it accidentally works is another thing but better get rid of singularity here..
I work with spring-boot on a daily basis and it doesn't actually care if the key is singular or plural. It will just instantiate a list when you use list notation instead of a single object.
But for clarity it would be recommended to use plural keys when using list values.
Unfortunately all the config examples on this component use singular naming but code shows that it handles both options and that's why both are valid. https://github.com/danobot/entity-controller/blob/f76e717a904f3b2734cf7033acbdfc4919d964da/custom_components/entity_controller/const.py#L62-L63
Does this work with 2024.1
?
I'm still on 2023.11
I just tried ton 24.1 and it still doesn't work for me ... I could prob fix it if I wasn't so busy right now
To fix the issue, I updated the configuration.yaml file by using a list format for specifying sensors and entities. Instead of directly assigning a single sensor or entity. See example below: sensor: - binary_sensor.storage_motion entity: - switch.storage
VS (Doesn't Work): sensor: binary_sensor.storage_motion entity: switch.storage
Genius, this fixed it for my running 2024.1!
I got mine working :)
Hi all, please update to 9.7.1 which contains a fix for configuration loading (string values vs list values). @Paul-Vdp please close issue once fix has been verified.
After updating to 9.71 and reverting the configuration changes I can confirm that issue has been resolved.
Description
Ever since I installed a Hass 2023.12 beta version, EC stopped working. It complains about non-existing states (they DO exist), and about 'not enough values to unpack (expected 2, got 1)' upon override state changes - and ends up doing nothing.
Configuration
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
This is how the component should work:
Actual Behaviour
This is what actually happened:
Logs
Version