Send TC command to OTGW
Moderator: leecollings
-
- Posts: 60
- Joined: Thursday 08 December 2016 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Bussum
- Contact:
Send TC command to OTGW
Hello,
I'm using the Opentherm LAN with an ESP8266 connecting to my OTGW which is working perfectly fine. I have the Isense room thermostat running its heating program and the override option on the thermostat is enabled. The problem as been discussed in various topics the last couple of years is thermostats differ and in this case the Isense does not respond to the TT command to temporarily override the set room temperature in thermostat.
I pretty much read all the topics on OTGW on both the domoticz as well as other forums but haven't found a solution to it besides the fact you can manually enter any OTGW command in the hardware section which works but is not very nice.
i checked the source and its actually this URL with variables which is send to domoticz. I tried it manually and it basically works. The OTGW responded nicely in the log with the correct answer.
http://<ip>:<port>/json.htm?type=command¶m=sendopenthermcommand&idx=<idx>&cmnd=<cmnd>
where cmnd is the actual OTGW command. TC=20 for instance.
The response page gave this:
{
"status" : "OK",
"title" : "SendOpenThermCommand"
}
I have created a dummy temperature virtual sensor so I can control the override temp using the TC command to be send to the OTGW.
I want to create a dzvents script making this work and I can see the virtual sensor in the scripting module (events).
I dont know dzvents very well. I've been reading about it but I need some guidance here.
thx in advance
I'm using the Opentherm LAN with an ESP8266 connecting to my OTGW which is working perfectly fine. I have the Isense room thermostat running its heating program and the override option on the thermostat is enabled. The problem as been discussed in various topics the last couple of years is thermostats differ and in this case the Isense does not respond to the TT command to temporarily override the set room temperature in thermostat.
I pretty much read all the topics on OTGW on both the domoticz as well as other forums but haven't found a solution to it besides the fact you can manually enter any OTGW command in the hardware section which works but is not very nice.
i checked the source and its actually this URL with variables which is send to domoticz. I tried it manually and it basically works. The OTGW responded nicely in the log with the correct answer.
http://<ip>:<port>/json.htm?type=command¶m=sendopenthermcommand&idx=<idx>&cmnd=<cmnd>
where cmnd is the actual OTGW command. TC=20 for instance.
The response page gave this:
{
"status" : "OK",
"title" : "SendOpenThermCommand"
}
I have created a dummy temperature virtual sensor so I can control the override temp using the TC command to be send to the OTGW.
I want to create a dzvents script making this work and I can see the virtual sensor in the scripting module (events).
I dont know dzvents very well. I've been reading about it but I need some guidance here.
thx in advance
____________________________________________________________________
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
-
- Posts: 60
- Joined: Thursday 08 December 2016 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Bussum
- Contact:
Re: Send TC command to OTGW
Update: I found a solution using a selector switch (virtual sensor) without having to script, allowing me to set some predefined override temperatures to the thermostat and also remove the override giving the control back to the thermostat. Works perfectly fine...
____________________________________________________________________
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
Raspberry PI 3 Model B with USB stick, Domoticz Stable, OTGW LAN with ESP wifi-bridge and Isense Thermostat using the Outside Temp from Buienradar via Domoticz, Milight Ibox-2(V6)
-
- Posts: 1
- Joined: Sunday 22 November 2020 19:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Send TC command to OTGW
I hoped to send you a PM because my english is not that good. I didn't succeeded. So i try this way.CaptainSlow wrote: ↑Sunday 08 November 2020 9:47 Update: I found a solution using a selector switch (virtual sensor) without having to script, allowing me to set some predefined override temperatures to the thermostat and also remove the override giving the control back to the thermostat. Works perfectly fine...
override.PNG
19.PNG
thermostat.PNG
Problem: I am trying (for more then a year (off and on) to send a command to OTGW to control my OTGW-module (and boiler). Your post came as nearby as possible, but it didn't work with me. I do something wrong, but what?
I foudn( from earlier posts) that when i send "http://192.168.178.10:8080/json.htm?typ ... d=CS=44"in a normal browser (for me Firefox), there comes an OK and in Domoticz/ log there will be a positive answer (like: 2020-11-29 01:05:09.108 Status: User: pi initiated a manual command: CS=44 ; 2020-11-29 01:05:09.226 Status: OTGW: CS: 44.00.
But when i place the same sentence in a dummy switch or the selector-switch you used (a much better choice) (or in Blockly-URL), i get in the Domoticz/log an error : Error: Error opening url: http://192.168.178.10:8080/json.htm?typ ... cmnd=CS=44.
I think taht i used the wrong URL. The URL 192.168.178.10 is the url for my Pi and 8080 the port to Domoticz. I tried also the url for teh OTGW-module: also no succes. The idx=6 is the idx in the Hardware-part for OTGW.
PLEASE: what do i wrong? I think it is a little fault, but essential!! and what is the good approach?? I hope you can help me. I am beginning to be a litlle (or much more) desperate.
-
- Posts: 40
- Joined: Tuesday 01 December 2015 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Send TC command to OTGW
Do try 127.0.0.1:8080 as the url
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
-
- Posts: 40
- Joined: Tuesday 01 December 2015 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Send TC command to OTGW
Thanks! Works like a charm.
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
-
- Posts: 8
- Joined: Sunday 06 December 2020 19:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Send TC command to OTGW
Thanks for the great tips in this thread. I'm trying to do the same, but I don't get it working yet.
When typing in my Chromium browser (at the RPi that runs Domoticz): http://127.0.0.1:8080/json.htm?type=com ... cmnd=TC=20
it gives me the response
{
"status" : "ERR"
}
The query also doesn't appear in my Domoticz log.
The same when I try from another computer in the network with the RPi's IP. The idx 39 corresponds to the IDX of the 'Room Setpoint' device in Domoticz (the OTGW has 26 other idx's), which I assumed was needed for this command. The OT gateway does work correctly with the manual operation in Domoticz (either via Utility tab or via commands sending in the hardware tab), so the communication between Domoticz and the OTGW seems to be good.
I'm not an expert yet with Domoticz (running for about a month) nor with json commands, so maybe I'm making a beginner's mistake here, but I can't find it. Why is this json-command not working?
When typing in my Chromium browser (at the RPi that runs Domoticz): http://127.0.0.1:8080/json.htm?type=com ... cmnd=TC=20
it gives me the response
{
"status" : "ERR"
}
The query also doesn't appear in my Domoticz log.
The same when I try from another computer in the network with the RPi's IP. The idx 39 corresponds to the IDX of the 'Room Setpoint' device in Domoticz (the OTGW has 26 other idx's), which I assumed was needed for this command. The OT gateway does work correctly with the manual operation in Domoticz (either via Utility tab or via commands sending in the hardware tab), so the communication between Domoticz and the OTGW seems to be good.
I'm not an expert yet with Domoticz (running for about a month) nor with json commands, so maybe I'm making a beginner's mistake here, but I can't find it. Why is this json-command not working?
Re: Send TC command to OTGW
http://192.168.178.10:8080/json.htm?typ ... cmnd=CS=44
Help needed using "OpenTherm Gateway with LAN interface Version: 6.2"
1) What is IDX 7 in the CaptainSlow example? Why do you need it, is it some kind of return value?
2) which IP adres to use? The domoticz or the OTGW address?
3) what port to use? 8080 (domoticz) or the port number in the hardware section 25238?
UPDATE: AH, IDX is the IDX number of the OTGW device in the hardware section (first column)
found it using F12 console in web browser when sending commands
Help needed using "OpenTherm Gateway with LAN interface Version: 6.2"
1) What is IDX 7 in the CaptainSlow example? Why do you need it, is it some kind of return value?
2) which IP adres to use? The domoticz or the OTGW address?
3) what port to use? 8080 (domoticz) or the port number in the hardware section 25238?
UPDATE: AH, IDX is the IDX number of the OTGW device in the hardware section (first column)
found it using F12 console in web browser when sending commands
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Send TC command to OTGW
You could also use DzVents to send a domoticz api json like with the openURL function in Domoticz.
See for an example how to send internal api commands through dzvents:
viewtopic.php?t=38099
You could also program this in a dzvents shared helper function: https://www.domoticz.com/wiki/DzVents:_ ... _functions
Code: Select all
http://192.168.178.10:8080/json.htm?type=command¶m=sendopenthermcommand&idx=6&cmnd=TC=20
See for an example how to send internal api commands through dzvents:
viewtopic.php?t=38099
You could also program this in a dzvents shared helper function: https://www.domoticz.com/wiki/DzVents:_ ... _functions
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: 621
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: Send TC command to OTGW
Ah, your response to your own question finally solved the issue for me.renerene wrote: ↑Monday 07 November 2022 20:18 http://192.168.178.10:8080/json.htm?typ ... cmnd=CS=44
Help needed using "OpenTherm Gateway with LAN interface Version: 6.2"
1) What is IDX 7 in the CaptainSlow example? Why do you need it, is it some kind of return value?
2) which IP adres to use? The domoticz or the OTGW address?
3) what port to use? 8080 (domoticz) or the port number in the hardware section 25238?
UPDATE: AH, IDX is the IDX number of the OTGW device in the hardware section (first column)
found it using F12 console in web browser when sending commands
Until now I tried to use the idx of my OTGW "room setpoint" device and I did not get it working.
Now I understand it should be the idx of the OTGW USB device as listed in the "settings/hardware" tab. It finally works, thanks a lot!!!!
The IP address I use is 127.0.0.1 and the port number is 8080 (which is the default domoticz port number), so 127.0.0.1:8080
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Send TC command to OTGW
I added the info to the API wiki https://www.domoticz.com/wiki/Domoticz_ ... om_command and the OTGW wiki https://www.domoticz.com/wiki/Opentherm ... d_Commands
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
Who is online
Users browsing this forum: No registered users and 0 guests