Description
Hi!
I've just set up phev2mqtt and have gotten it connected to Home Assistant and everything shows up and seems to be reading properly for about a minute or two but after that it all becomes unavailable.
I'm also not able to turn on anything. If I do, it flips back off and the logs says the following:
level=info msg="Topic: [phev/set/parkinglights] Payload: [on]"
level=info msg="Error setting register 0xb: timed out attempting to set register 0b"
It eventually fails and disconnects.
level=error msg="Disconnecting due to too many errors"
level=info msg="Error setting register 0xb: timed out attempting to set register 0a"
level=info msg="%PHEV_TCP_CONNECTED%"
level=debug msg="%%PHEV_START_AWAIT%%"
Once it connects again, it runs and endless loop of level=debug msg="%PHEV_TCP_SEND_MSG%: [00] PING REQ (id 1)"
and the "id" keeps going up and up until it does level=debug msg="%%PHEV_START_TIMEOUT%%"
and level=error msg="timed out waiting for start"
While watching the logs, I also noticed that this just popped in:
level=debug msg="%%PHEV_TCP_READER_ERROR%%: read tcp 192.168.8.47:40010->192.168.8.46:8080: i/o timeout"
level=debug msg="%PHEV_TCP_READER_CLOSE%"
level=debug msg="%PHEV_TCP_SEND_MSG%: [00] PING REQ (id 3b)"
level=error msg="%PHEV_TCP_WRITER_ERROR%: write tcp 192.168.8.47:40010->192.168.8.46:8080: use of closed network connection"
level=debug msg="%PHEV_TCP_WRITER_CLOSE%"
After rebooting I randomly get level=error msg="dial tcp 192.168.8.46:8080: connect: connection refused"
and it doesn't reconnect to the car unless I reboot the Pi.
Do you have any advice on how to troubleshoot this further or fix this?