Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. toddles
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    toddles

    @toddles

    0
    Reputation
    1
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    toddles Follow

    Best posts made by toddles

    This user hasn't posted anything yet.

    Latest posts made by toddles

    • Events instead of states

      Hi there,

      Apologies if this is obvious or has been asked before (I did have a quick search!). I have a mysensors node with a keypad which I want to use to toggle various lights, turn on my alarm, fire scripts etc. I have registered an 'S_INFO' sensor and I'm able to send the a V_TEXT (single char) through to homeassistant no problem.

      I am wondering if it's possible for homeassistant to treat these incoming messages as events rather than as possible state changes. Otherwise, without some internal hackery, I can't register repeated presses of the same button. So if I want key 2 to toggle a light, for example, I can't toggle it on then off without pressing another button to change the sensor state.

      The solution I've opted for at the moment is that, whenever the sensor state is changed, I have a routine which changes the state back to something invalid (0). This way every key press is firing a 'state change', but it can be a bit buggy if the buttons are pressed in quick succession.

      Thanks in advance for your help.

      posted in Home Assistant
      toddles
      toddles