My longest hang up, and my best guess about why yours isn’t yet working, is with the Pi-serial interface. I wish I had more time to help you troubleshoot this but right now I just don’t.
On the CAV6.6, you can remove the cover on the front and check that the switch is set to the correct RS-232 port (front or rear).
I remember there was some way to manually send commands to the device to test if it’s receiving them but for some reason, I didn’t record any notes about that.
I’m fairly certain that the code in HA is rock solid at this point so it must be something else.
Here are all the notes I took, I wish I had a better tutorial for you. I also was just winging it at a level a bit over my head. Don’t give up!!!
Install pySerial as root
‘sudo python -m pip install pyserial’
Create tcp_serial_redirect.py in /usr/local/bin
‘cd /usr/local/bin’
‘sudo nano tcp_serial_redirect.py’
paste code from: ‘https://github.com/pyserial/pyserial/blob/443e27de14a9a12899c8db600e44428927fc5364/examples/’
Start with this command:
‘python /usr/local/bin/tcp_serial_redirect.py --rts 1 --dtr 1 -P 1337 /dev/ttyUSB0 19200’
If no errors, create systemd service file:
‘sudo nano /etc/systemd/system/tcp_serial_redirect.service’
'[Unit]
Description=tcp_serial_redirect
After=network.target
[Service]
ExecStart=/usr/local/bin/tcp_serial_redirect.py --rts 1 --dtr 1 -P 1337 /dev/ttyUSB0 19200
User=pi
Restart=always
RestartSec=15min
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=tcp_serial_redirect
[Install]
WantedBy=multi-user.target’
Set to start on boot
‘sudo systemctl daemon-reload’
‘sudo systemctl enable tcp_serial_redirect.service’
‘sudo systemctl start tcp_serial_redirect.service’