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.
-
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 -
@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.
-
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 -
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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login