Haha nice one.
Is is definitely faster to setup compared to the also working 100% 'node' solution described in the beginning of this post.
Tnx for sharing.
OTmonitor and Domoticz parallel access to OTGW
Moderator: leecollings
- sincze
- Posts: 1299
- Joined: Monday 02 June 2014 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Location: Netherlands / Breda Area
- Contact:
Re: OTmonitor and Domoticz parallel access to OTGW
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Re: OTmonitor and Domoticz parallel access to OTGW
Hi all,
I'm having problems with my OTGW and Domoticz (as already explained in other topics). (Very) short version: When running the OTGW with OTMonitor everyhing is fine, but when I connect Domoticz to it, it only gives me the messages that start with B or T.
sincze pointed me to this topic, and I have tried the node.js-script. When I run the script (I'm using Putty), I see only one message in the domoticz-log:
I see the script running in Putty, but nothing happens within domoticz. Very strange. Can anybody think of a reason for this?
I'm having problems with my OTGW and Domoticz (as already explained in other topics). (Very) short version: When running the OTGW with OTMonitor everyhing is fine, but when I connect Domoticz to it, it only gives me the messages that start with B or T.
sincze pointed me to this topic, and I have tried the node.js-script. When I run the script (I'm using Putty), I see only one message in the domoticz-log:
Code: Select all
OTGW: connected to: 127.0.0.1:7689
-
- Posts: 26
- Joined: Wednesday 03 August 2016 12:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: OTmonitor and Domoticz parallel access to OTGW
Happy user of the script here.
I've created a (quick and dirty) docker container where otmon and the script are combined:
https://hub.docker.com/repository/docke ... rben/otmon
I've created a (quick and dirty) docker container where otmon and the script are combined:
https://hub.docker.com/repository/docke ... rben/otmon
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: OTmonitor and Domoticz parallel access to OTGW
I read through the script and I came across a line that verifies that there are 25 responses. I think that as soon as you change that to the new 34, it is supposed to work again
- kiddigital
- Posts: 435
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: OTmonitor and Domoticz parallel access to OTGW
It is not only that the V5 firmware now has 34 instead of 25 fields, also the order of the fields has changed (still the order is the OpenTherm MsgIDs but some new MsgIDs have been added in between)
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: OTmonitor and Domoticz parallel access to OTGW
This script allows users to exchange what they want to show up in the ps=1 string. For myself I have exchanged an unused parameter for my solar boiler temperature. I don't think that the new order matters here. That is taken care of in domoticz by the normal OTGW hardwarekiddigital wrote:It is not only that the V5 firmware now has 34 instead of 25 fields, also the order of the fields has changed (still the order is the OpenTherm MsgIDs but some new MsgIDs have been added in between)
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: OTmonitor and Domoticz parallel access to OTGW
I updated my Opentherm Gateway over the weekend to 5.2. I couldn't find the previous version, but I expected 5.0 or 5.1.jake wrote:This script allows users to exchange what they want to show up in the ps=1 string. For myself I have exchanged an unused parameter for my solar boiler temperature. I don't think that the new order matters here. That is taken care of in domoticz by the normal OTGW hardwarekiddigital wrote:It is not only that the V5 firmware now has 34 instead of 25 fields, also the order of the fields has changed (still the order is the OpenTherm MsgIDs but some new MsgIDs have been added in between)
From that moment my solar boiler reported 0.0'C in Domoticz, but still the correct temperature in OTmonitor. It scared me, since I had replaced a faulty temperature sensor in the solar boilier just that same afternoon. To find a 0.0'C temperature in Domoticz wasn't funny.
Anyway, after comparing, splitting the PS=1 string etc. I was 'rescued' by my own input here above: I obviously didn't run a +5.0 firmware, because the otgwmod was using position 11 for solar temperature ID=29. Position 11 originally was used for DHW temperature, which my boiler doesn't supply. I used that position for the solar boiler instead, using the same type of temperature sensor in Domoticz.
After I put ID=29 on position 15 and the sample change (ID=29) from position 12 (<5.0 version) to the current (+5.0 version) position 22, Domotidz was happy again.
in OTGWmod.js I also change the code tmp.length == 25 to tmp.length == 34 to meet the current PS=1 length.
Summary:
OTGWmod works just fine in +5.0 versions of the gateway as long as:
- New position in the PS=1 string is used for the value that needs to be replaced
- tmp.length == 25 is changed to tmp.length == 34
Who is online
Users browsing this forum: No registered users and 0 guests