I started today by connecting the OTGW-USB to my Windows 10 Machine. Problem 1: USB to serial driver not compatible. I found the solution here http://www.ifamilysoftware.com/news37.html by following all steps.
Since I could read all information from the OpenTherm connection, I was sure that the hardware was OK. Time to move on to the RPI.
I shutdown the RPI, connected the OTGW-USB and started the RPI again.
To install/run the OTmonitor software, I followed the steps of Newwolf in this topic: https://www.domoticz.com/forum/viewtopic.php?f=26&t=211&start=240#p34738
In my case I had to change ttyUSB0 to ttyUSB1
Code: Select all
### Download OTGW
wget -N http://otgw.tclcode.com/download/otmonitor-ahf -P /home/pi/otgw/
chmod +x /home/pi/otgw/otmonitor-ahf
### Make config file
### Run it
/home/pi/otgw/otmonitor-ahf --daemon -f "/home/pi/otgw/otmonitor.conf" &
### Kill it (if needed)
killall -9 otmonitor-ahf
Connect Domoticz or OTGW-monitor to it's IP-address and port 7686
In any browser the webUI could by started now by this address http:\\RPIaddress\8081
From the Windows 10 machine, with OTmonitor.exe I had to change the connection to TCP connection with as Remote host the RPIaddress and port 7686
In order to restart OTmonitor automatically when the RPI reboots, I didn't follow Newwolf after all, since his suggestion did not auto-start OTmonitor.
I used Supervisor to set it up:
Code: Select all
sudo apt-get install supervisor
### create a config file, I needed sudo to do that
sudo nano /etc/supervisor/conf.d/otmonitor.conf
### paste the following text in there and save/exit with CTRL-X
command = /home/pi/otgw/otmonitor-ahf --daemon -f "/home/pi/otgw/otmonitor.conf"
directory = /home/pi/otgw/
autostart = true
autorestart = true
stderr_logfile = NONE
stdout_logfile = NONE
###I than did a stop/start of supervisor
sudo service supervisor stop
sudo service supervisor start
###Check if supervisor correctly started otmonitor
sudo supervisorctl status
In Domoticz I turned on "allow new hardware" (first for 5 minutes, but when I had issues, no new devices were created. I therefore enabled new hardware 'permanently'
In Hardware I added the OTGW-LAN device with as address: 127.0.0.1 and port 7686
In the device tab you can find and add your switches, setpoints etc.
2 open issues for me:
- After hours fiddling, I discovered that otmonitor doesn't show any status or summary when the command PS=1 is issued, only when PS=0 is everything showing fine. Domoticz however sets the PS=1 with every action it does. No clue why this happens
- I have the Remeha Gateway in my system to connect the solar boiler to the heating system. I therefore have in the OpenTherm variables also the line: 1D 29 Read Solar storage temperature --- 53.00 I would like to read this in Domoticz very much, but it doesn't show.