-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
using a scene for entity_on does not work #1
Comments
Thank for that, feel free to PR a fix. I don't use scenes myself and didn't realise they have a different state :) |
For the component to work The only way I can think of right now to make it work would be to separate the I am working on a fix for this :) |
I knew there was a way to do this already... This is not documented well. You can actually specify an defect_test:
module: motion_lights
class: MotionLights
entity: light.tv_led
entity_on: scene.presence_lights
entity_off: script.turn_off_presence_lights
sensors:
- binary_sensor.living_room_motion This will activate your scene, observe an entity who is part of the scene, and use the |
Ok. I did see that, but I just did not get it until now. Thanks! |
If you specify a scene for entity_on, the state is always "scening" which results in:
... INFO xxx Motion Lights: Motion Sensor binary_sensor.xxx_motion triggered
... INFO xxx Motion Lights: Current state of scene.xxx_on_dim is scening
... INFO xxx Motion Lights: Entity is already switched on. Motion trigger ignored.
because if entityState == "off": will never be true for a scene.
Perhaps:
if entityState != "on", although I don't know what other affects that may have.
The text was updated successfully, but these errors were encountered: