Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Domoticz
  4. Heartbeat working or not?

Heartbeat working or not?

Scheduled Pinned Locked Moved Domoticz
8 Posts 4 Posters 2.1k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Strixx
    wrote on last edited by Strixx
    #1

    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.

    1 Reply Last reply
    0
    • alowhumA Offline
      alowhumA Offline
      alowhum
      Plugin Developer
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • sglueS Offline
        sglueS Offline
        sglue
        wrote on last edited by
        #3

        @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

        S 1 Reply Last reply
        0
        • sglueS sglue

          @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

          S Offline
          S Offline
          Strixx
          wrote on last edited by Strixx
          #4

          @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.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Strixx
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            3
            • S Offline
              S Offline
              Strixx
              wrote on last edited by
              #6

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

              1 Reply Last reply
              2
              • P Offline
                P Offline
                pjr
                wrote on last edited by
                #7

                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
                
                S 1 Reply Last reply
                0
                • P pjr

                  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
                  
                  S Offline
                  S Offline
                  Strixx
                  wrote on last edited by
                  #8

                  @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!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  8

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular