Comments (4)
Sorry, I don't understand your issue. What is the expected behaviour, and what behaviour are you seeing?
If you're trying to trigger automations based on state changes this won't work as uiButtonPair just holds the last state. So it won't ever reset to 0.
You need to use an event trigger with a trigger of lightwave2.click
.
from homeassistant-lightwave2.
Expected behaviour is trigger automation from attribute state change to set value.
I can see that attribute changes to desired state but automation is not triggered.
On my other device automations for trigger initial state is not important, I just need to specify desired value.
It might be that it is nothing wrong with Your code and HA is to blame... It's just strange that it works with other devices.
from homeassistant-lightwave2.
I'm not sure why it doesn't work. Even if you do get this to work, it won't work reliably, because if you perform the same action twice in a row, your trigger won't activate (because the state won't change).
I will look and see if I can reproduce, but I think you need to change to an event trigger.
from homeassistant-lightwave2.
Option with event works better indeed
platform: event event_type: lightwave2.click event_data: entity_id: light.master_bedroom_light code: 4354
from homeassistant-lightwave2.
Related Issues (20)
- Control not available on v1 devices when Homekit devices hidden HOT 1
- Plug sensor is not hidden when hiding Homekit devices HOT 1
- Door sensor open/close state not hidden when hiding Homekit events HOT 5
- Unable to connect HOT 12
- Functionality question... HOT 2
- Status not updating in HA HOT 2
- Public API: Attempt to decode JSON with unexpected mimetype: text/html HOT 10
- All my lightwave lights are hidden HOT 3
- General sign in problem HOT 22
- AttributeError when adding integration - object has no attribute 'product_code' HOT 14
- Inline relays not discovered (both Connect and Smart Series) HOT 3
- Individual LED status colours HOT 3
- Error while setting up lightwave2 platform for sensor
- Lightwave RF using Honeywell Wireless Thermostat causes integration to fail. Error: AttributeError: 'NoneType' object has no attribute 'state' HOT 2
- Control of the LED on Gen2 Sockets not shown in HA (whereas the LED is controllable in HA for Light Switches) HOT 7
- Not pulling in correct names of devices HOT 35
- Lightwave Wirefree dimmers (scene selector) HOT 5
- HASS 2024.1.x - Deprecated Constants HOT 19
- Lightwave smart motion sensors LP70 only expose battery level HOT 10
- Lightwave click events not received when Homekit devices hidden HOT 2
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 homeassistant-lightwave2.