Heartbeat working or not?



  • Hello!

    Anyone here using sendHeartbeat() and can confirm it works with Domoticz?
    I have just build my first motion and door sensor, and I can not get Domoticz to update the "last seen" for them.

    If I read on Domoticz forum @sundberg84 asked for this feature in january 2016, and as I understand it it was implemented in february.
    But in another thread someone else is asking again for it. And this is in september 2017.

    I am running version 3.8153 dated 2017-07-30.

    If someone can confirm that it is working in latest stable 4.9700 I will update my server, otherwise not. I have always had allot of troubles on my previous updates. And now it has been working perfect for a year.


  • Plugin Developer

    Last thing I know is that it didn't work.



  • @denis-renaud may have solved your problem.
    https://forum.mysensors.org/topic/7841/relay-actuator-send-periodic-status-as-heart-beat
    Not sure whether this is related. I don't use Domoticz



  • @sglue Thanks for replying but that does not work in Domoticz. Just as mentioned in the thread. Domoticz only acknowledge that a sensor is alive if it sends new data. Not by sending a status that it has received earlier.

    For now I have solved it by a dummy switch in my sketch that alternates on and off at every heartbeat, but I don't think that is a very nice solution. And I have to have two different script checking my sensors in Domoticz. One for the ones that heart beats is working in (ie X10) and one for my MySensors nodes.



  • Answering my self for info to others that finds this thread.

    I finally did the upgrade anyway and:
    It is NOT working in v4.970.



  • Update: It seems as heartbeat works in 4.9701 for S_DOOR, but not for S_MOTION or S_BINARY.



  • Take a look at: https://github.com/domoticz/domoticz/blob/a668baf917333e93f92dd9bb7c77eef8e0bc4ce4/hardware/MySensorsBase.cpp#L486

    //V_TRIPPED
    //V_ARMED
    //V_LOCK_STATUS
    //V_STATUS
    //V_PERCENTAGE
    //V_SCENE_ON
    //V_SCENE_OFF
    //V_UP
    //V_DOWN
    //V_STOP
    //V_RGB
    //V_RGBW
    


  • @pjr I am still a noob when it comes to C. And I have not had the time to examine the Domoticz source code. But at first glance those lines seems as V_PERCENTAGE, V_SCENE_OFF, V_STOP and V_RGBW that updates the last seen on heartbeat.

    I have had my node running now for 2 days just checking this heartbeat. And I can for shore sasy that is only working for the door sensor. Which presents it self as S_DOOR and sends V_TRIPPED messages.
    It is not working for the motion sensor presenting it self as S_MOTION and also sends V_TRIPPED messages.

    And one more really strange thing is that it is only working on the door sensor when the door is open. Not closed!


Log in to reply
 

Suggested Topics

  • 5
  • 4
  • 2
  • 8
  • 1
  • 5

17
Online

11.4k
Users

11.1k
Topics

112.7k
Posts