Comments (3)
Hi, I would say it depends on how the sensor is internally handled by the HUE integration.
It looks like the sensor is recreated from scratch each time, instead of updated.
Consider that the script only set the attribute value, creating the attribute if not exists.
It doesn't delete the attribute, unless you don't use the delete_attribute
action (which is not the case from what I'm seeing).
I'm afraid you need to adapt the trigger of your automation and set the attribute value for each sensor state change.
from ps_hassio_entities.
Oké, thanks for your explanation. Then I'll have to work my way around this behaviour. Nice script though!
from ps_hassio_entities.
from ps_hassio_entities.
Related Issues (7)
- Can you please share one example to using the script in an automation or script [QUESTION] HOT 3
- the script doesn't seem to run properly not catching the parameter "action" HOT 4
- Can I change the "name" attribute of a timer? HOT 3
- Perform a calculation to set a (new) state HOT 3
- set attribute for another entity id state HOT 2
- [BUG] Repository structure for v1.1.0 is not compliant with HACS 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 ps_hassio_entities.