Comments (4)
Ok. I did see that, but I just did not get it until now.
Thanks!
from entity-controller.
Thank for that, feel free to PR a fix. I don't use scenes myself and didn't realise they have a different state :)
Can you post your configuration please?
Scenes cannot be turned off last time I read the documenation. What are you doing to turn off the scene?
from entity-controller.
For the component to work entity_on
must have on
and off
states. Scenes are always in scening
state regardless of whether they are active or not. As such the component does not support scenes and scripts for the moment. The addition of entity_off
was supposed to fix this.
The only way I can think of right now to make it work would be to separate the entity_on
into entity_on
and entity_state
where entity_state
is the entity whose state should be used to control the motion light.
I am working on a fix for this :)
from entity-controller.
I knew there was a way to do this already... This is not documented well. You can actually specify an entity
to be used for entity state and use scene
/script
for entity_on
. You must also supply entity_off
to undo what entity_on
turned on.
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 entity_off
script to turn off the scene when it times out.
I will update the documentation.
from entity-controller.
Related Issues (20)
- LUX and illuminance sensors HOT 1
- UL Length incompatible with release 2023.4 HOT 5
- Recorder Error converting ulid since 2023.4
- EC enhancement request
- stay_on: {state_entity} or blocking turning off the light on the state of the entity
- Add support for Brightness Sensor ( Value )
- Option: Invert sensor HOT 1
- Reload without HA restart HOT 2
- Entity Controller stuck in 'active' state HOT 2
- Feature: Conditions or enable/disable option HOT 1
- Controller entity always entering `blocked` state - why? HOT 3
- trigger_on_deactivate is triggered when giving up control because of an outside change. HOT 2
- EC sometimes enters blocked state HOT 6
- Warn users that timezones are mismatched
- Entities after potential configuration error are ignored
- example of "Custom State Strings" HOT 1
- Broken since Hass 2023.12 beta HOT 34
- When there is no motion for x mins then turn off HOT 1
- EC configurations do not load properly in 2024.2.0 - may be Python 3.12 HOT 26
- Lights turning off during restart HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entity-controller.