Giter Site home page Giter Site logo

Comments (4)

bigbadblunt avatar bigbadblunt commented on September 27, 2024

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.

incarvr6 avatar incarvr6 commented on September 27, 2024

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.

bigbadblunt avatar bigbadblunt commented on September 27, 2024

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.

incarvr6 avatar incarvr6 commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.