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?
Network-connected P1 meter does not recover from reboot of remote device
Moderators: leecollings, remb0
-
- Posts: 23
- Joined: Saturday 16 January 2021 16:07
- Target OS: Linux
- Domoticz version:
- Contact:
-
- Posts: 60
- Joined: Thursday 20 April 2017 7:20
- Target OS: Linux
- Domoticz version: Latest
- Contact:
Re: Network-connected P1 meter does not recover from reboot of remote device
I have the same problem. Need to disable and enable the interface to get it to connect again.
- waltervl
- Posts: 5847
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Network-connected P1 meter does not recover from reboot of remote device
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.
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 60
- Joined: Thursday 20 April 2017 7:20
- Target OS: Linux
- Domoticz version: Latest
- Contact:
Re: Network-connected P1 meter does not recover from reboot of remote device
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
EDIT I found the data timeout option that will hopefully solve my problem
Who is online
Users browsing this forum: No registered users and 1 guest