Hello, i am having some problems using this integration. I installed it using Hacs, but it is not working.
I feel like I am missing something in configuration.yaml, but the github doesnt mention you need to add anything to make it work.
Is there a step after adding the files to custom_components?
Iâve noticed something lately, could have been always present but sunrise/sunset changed enough to notice it.
If you are in constrained mode and the motion sensor is tripped and a duration type, and on when constrained mode exits, you get into a weird state with lights off, sensor on, and entity-controller in idle.
I would assume on constraint exit (and override exit too) that if the trigger sensor is âonâ it should immediately go active?
Has it always been like this or perhaps something changed recently?
nothing changed recently other than potentially peoples configurations. Probably it has always been like this, i just dont have time to fix these really specific bugs that are hard to reproduce (because they are timebound and only occur under very specific conditions).
I therefore have two motion sensors that control a light.
Everything works, including the fact that if I use a button to turn on the light before the movement, the movement does not turn off the light at the end of the timeout - a function that in the documentation on GitHub you indicate as (3.1).
But there is one thing I canât do, and thatâs what you indicate as (3.2) (I copy&paste from GitHub):
(3.2) A light that is switched on the time-out period should have timed out, and therefore stay on.
I would need this but I could not implement it.
If the sensor turns on the light and then I press the button to âfixâ the light on, it actually turns off (I use a Shelly1 and the button is linked to its input).
I donât understand how should I do.
Do you have suggestions?
Thanks in advance
P.S. excuse the banality, Iâm starting now with HAâŠ
I am trying to get this working but I cannot get the light to ever turn on. Once the motion event triggers the entity_controller stays active forever.
Any ideas would be great!
Here is my config.
Then a question regarding one of my instances. I have a motion sensor that turns on two lamps, but one of them (âcitrusbelysningâ) is also controlled by a timer (to be on during daylight). I have also constrained the sensor to sunset/sunrise (so the sensor should work when it is dark), but in my case the sensor is always constrained.
The time windows overlap (sun sets before the timer goes off), but I thought this should work.
If I change the constrain times so the time windows doesnât overlap, it works as expected.
Any ideas why the sensor is constrained after sunset when the timer is off?
I understand that the sensor is constrained when the sensor is activated (sunset-30min), but shouldnât the sensor go back to idle when the lamp is turned off (at 18:00)?
If one of the controlled entities is on manually or from another automation you should see it in blocked state. That is not what you are seeing here.
But I would suggest you duplicate that entity controller, one for each light, so that the one not on the other daylight timer doesnât block the one that isnât.
Also be aware the sunset and sunrise times do not update from when HA was started and the entity controller component was loaded. This could lead to being constrained when you think it should not be if you have not accounted for this.
Just started using this and itâs really simplified a lot of things.
I have one light automation for the bathroom, that the delay changes depends on the state of the door:
5 minutes delay (to turn off the light) when the door = close
Thanks for your contribution, John. Thinking the same here. Sometimes creating multiple EC instances resolves problems like this. Even with multiple ECâs the solution is sitll way neater than any alternative.
Try using a normal light first as a santity check (wihtout any brightness percentage). Once that is proven to work in your HASS instnace, move on to more complex stuff like passing service parameters. Use the devleoper tools to manually call the turn_on service on that entity with the supplied service parameters. That is all EC does in the background.
@danny not sure how i missed this before, but itâs great. Thank you for producing it.
Small question, I presume any changes to the configuration require HA restart?
or is there some reload option?
Thank you