MySensors to Domoticz Watchdog Update

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
domore
Posts: 4
Joined: Sunday 15 May 2016 2:20
Target OS: Linux
Domoticz version:
Contact:

MySensors to Domoticz Watchdog Update

Post by domore »

I have about 10 MySensors nodes scattered around talking to Domoticz. Most update temperature on a regular basis and are easy to determine that the Arduino hasn't developed an issue by looking at the Last Seen status in the Device window.

I have just implemented a Water Leak Sensor for my HVAC unit which I have it set up with a interrupt trigger and a sleep function. The sleep time is 3,000,000 ms(~1 Hour) since from 5 minute trials I determined that the actual sleep time is around 120% of requested value.

During the short trials I observed(Serial monitor and Domoticz log) that the code would wake up as expected, transmit status and go back to sleep. However, Domoticz log never acknowledged these transmissions. It did acknowledge the sign-on status of the node on registration. I thought it could be a radio issue since my desktop is not optimally positioning the radio for transmit.

Now, the issue... after a 18 hour trial with the radio optimally positioned(each interrupt trigger is immediately acknowledged) there are no records of the watchdog update in the Log or the Device window in Domoticz. It still shows the last time that a status change was triggered... Off/On or On/Off.

Questions:
Is this expected behavior for Domoticz? Will it only update the Device window Last Seen time when a state change is issued?

Does sending an OFF state when the switch is OFF not update the Last Seen time?

Is there a way to update Last Seen so I can know things are working without triggering notifications from the Device window?
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: MySensors to Domoticz Watchdog Update

Post by bizziebis »

I'm using a NodeMCU with ESPEasy also to detect water leakage. I set an interval for the sensor to transmit the status every hour, regardless if the status has changed. This results in an updated 'last seen' value. Also the log is filled with 'Off,Off,Off' etc. So it is possible to keep sending the last state of a switch and update the last seen time with it.

But I don't know how this works with MySensors. Maybe it looks at the current status and doesn't update if the status is still the same.

I think this was also the reason why I switched from MySensors to ESPEasy..
domore
Posts: 4
Joined: Sunday 15 May 2016 2:20
Target OS: Linux
Domoticz version:
Contact:

Re: MySensors to Domoticz Watchdog Update

Post by domore »

bizziebls, thanks for the reply. Was not familiar with ESPEasy so that was a bonus.

Now have modified code to send a fake temperature within the same routine as the update to the Switch(Water Leak Alarm). Code is updating temperature on approximate intervals as expected but nothing in the Switch. Last Seen is always the last Switch toggle time. Domoticz log shows the temperature update but no Switch communication receipt is shown.

As stated earlier, MySensors Serial Monitor shows transmission of the status on the expected interval. I believe this is within Domoticz.
abrasha9
Posts: 5
Joined: Monday 09 January 2017 14:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MySensors to Domoticz Watchdog Update

Post by abrasha9 »

hi domore
i've also wanted to add a WTD for mysensors node, and my method was to run gw.begnin(1.5.6 version) every 2 hours or after doing some sort of ping to GW. the last-update realy doesnt change, BUT inside the hardware tab when you see the nodes inside the GW you can see the last seen time of the node.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest