Page 1 of 1

Network-connected P1 meter does not recover from reboot of remote device

Posted: Friday 29 April 2022 18:45
by JanCeuleers
I have connected a P1 smart meter to a co-located Raspberry Pi and have set up ser2net on it so that my Domoticz server can query it. I have created a "P1 smart meter with LAN interface" hardware entry, and that works OK.

What does not work is automatic recovery from a reboot of the remote Raspberry Pi. I'm not exactly sure what recovery action is needed; I think that restarting Domoticz does it. This is despite the fact that I have configured the "P1 smart meter with LAN interface" with a 1-minute Data Timeout.

How can I make this meter recover automatically?

Re: Network-connected P1 meter does not recover from reboot of remote device

Posted: Friday 03 March 2023 7:37
by ressof
I have the same problem. Need to disable and enable the interface to get it to connect again.

Re: Network-connected P1 meter does not recover from reboot of remote device

Posted: Friday 03 March 2023 7:55
by waltervl
Possibility could be to pause the start of Domoticz a reboot. Seems that the network is not up yet when Domoticz starts.
In the troubleshooting wiki there are some instructions how to do that (for another issue with cold start of RPi without clock).


https://www.domoticz.com/wiki/Troublesh ... _cold_boot

1. Put a x seconds delay in the startup of Domoticz to give the system time to update time settings using Command line parameter -startupdelay
2. Use crontab and add @reboot sleep 180 && /etc/init.d/domoticz.sh restart This will restart domoticz after 180 seconds.

Re: Network-connected P1 meter does not recover from reboot of remote device

Posted: Monday 06 March 2023 8:15
by ressof
My problem is that when the ser2net device is restarting (its on a different hardware) domoticz looses the connection to it and I have to disable and enable the interface again to get it to work.

EDIT I found the data timeout option that will hopefully solve my problem