Motion sensor node to always report not tripped state to reset controller value



  • Hi,
    i am running a pro mini 3.3v at 1mhz with panasonic motion sensor and rfm69 radio. I would really like to use the nodemanager but the following case is not working.

    I have set the mode to CHANGE to make sure that the controller is reset when the LOW interrupt is called. This is also working fine, but means that the sensor is spamming the gateway because it wakes up every time.
    motion.setInterruptMode(CHANGE);

    Then i tried to use the wait after interrupt, which works, the sensor does not wake up the next 30 seconds. The issue is that the LOW state is never triggered, due to the wait statement.

    motion.setWaitAfterInterrupt(30000);

    My requirement is that the sensor should always send a motion (0) event after a motion (1) event, to make sure that the home assistant sensor is also reset to no motion.

    How could i accomplish that or should i instead forget about nodemanager?


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 1
  • 2
  • 2
  • 8

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts