Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.0b5 issues on Hue #97

Open
pgale opened this issue May 26, 2024 · 10 comments · Fixed by #113
Open

1.3.0b5 issues on Hue #97

pgale opened this issue May 26, 2024 · 10 comments · Fixed by #113

Comments

@pgale
Copy link

pgale commented May 26, 2024

Hi,
I've now setup and tested b5. The good news is no more errors in the log like I had before. However, I get inconsistent behaviour:

  1. Turning a scene on will turn on the stateful scene about 4 out of 5 times, so not always.
  2. Once the scene is activated, it will deactivate between 2 seconds to 60 seconds later.

I have Three Hue scenes setup in Stateful Scenes with 9 lamps in the scene. There are additional group entries that cover combinations of lamps e.g. my ceiling light is made up of three lamps and the way the Hue integration imports them, it sets up a group called 'ceiling light'. I'm not sure if this makes a difference as I only added the actual lamps, not the groups.

I have tried debounce time of 0.5, 1 and 1.5 seconds - no difference. Restore on deactivate is OFF for all. Transit time is 1 sec for all.

Stateful scene will always turn off. I have these scenes controlled via Blacky's sensor light blueprint but I have also bypassed it, so there shouldn't be anything else affecting the lights. Just watching them, nothing changes that I can see when the Stateful Scene turns off.

Any ideas why it might be deactivating?

Thanks.

@pgale
Copy link
Author

pgale commented May 26, 2024

Oh, just checked again and see these errors (if they are important?):

Source: helpers/entity_platform.py:744
integration: Switch (documentation, issues)
First occurred: 21:07:31 (12 occurrences)
Last logged: 21:07:31

Platform stateful_scenes does not generate unique IDs. ID 1710954379596_restore_on_deactivate already exists - ignoring switch.study_lights_off_restore_on_deactivate
Platform stateful_scenes does not generate unique IDs. ID stateful_1711116503704 already exists - ignoring switch.living_room_off_stateful_scene
Platform stateful_scenes does not generate unique IDs. ID 1711116503704_restore_on_deactivate already exists - ignoring switch.living_room_off_restore_on_deactivate
Platform stateful_scenes does not generate unique IDs. ID stateful_1712745261109 already exists - ignoring switch.en_suite_off_stateful_scene
Platform stateful_scenes does not generate unique IDs. ID 1712745261109_restore_on_deactivate already exists - ignoring switch.en_suite_off_restore_on_deactivate

Logger: homeassistant.components.number
Source: helpers/entity_platform.py:744
integration: Number (documentation, issues)
First occurred: 21:07:31 (12 occurrences)
Last logged: 21:07:31

Platform stateful_scenes does not generate unique IDs. ID 1710954379596_debounce_time already exists - ignoring number.study_lights_off_debounce_time
Platform stateful_scenes does not generate unique IDs. ID 1711116503704_transition_time already exists - ignoring number.living_room_off_transition_time
Platform stateful_scenes does not generate unique IDs. ID 1711116503704_debounce_time already exists - ignoring number.living_room_off_debounce_time
Platform stateful_scenes does not generate unique IDs. ID 1712745261109_transition_time already exists - ignoring number.en_suite_off_transition_time
Platform stateful_scenes does not generate unique IDs. ID 1712745261109_debounce_time already exists - ignoring number.en_suite_off_debounce_time```

@pgale
Copy link
Author

pgale commented May 26, 2024

and this one just popped up:

Source: helpers/entity.py:1230
First occurred: 21:07:45 (29 occurrences)
Last logged: 21:09:38

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/stateful_scenes/StatefulScenes.py", line 316, in update_callback
    self.schedule_update(True)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1230, in schedule_update_ha_state
    self.hass.create_task(
    ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'create_task'```

@pgale
Copy link
Author

pgale commented Jun 2, 2024

@hugobloem any thoughts on the hue issues?

@pgale
Copy link
Author

pgale commented Jun 8, 2024

@hugobloem do you think you'll be able to solve this issue or is Hue support a non-starter do you think?

@simonheng
Copy link

I am having the same issues when testing 1.3.0b5!

@pgale
Copy link
Author

pgale commented Jul 11, 2024

Not heard from Hugo in some time. Hopefully he'll have some time at some point to get this working.

@pgale
Copy link
Author

pgale commented Oct 2, 2024

Do you think you'll ever get this working? Might be best to remove Hue support if not.

@hugobloem
Copy link
Owner

Unfortunately, I have never been able to reproduce this issue. With the changes in #113 the callback functions should be internally known to the Scene which should hopefully make it more robust.

@hugobloem
Copy link
Owner

Let me know if this fixes things, please.

@hugobloem hugobloem reopened this Oct 2, 2024
@pgale
Copy link
Author

pgale commented Oct 3, 2024

I'll give it another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants