Setpoint control of Opentherm Gateway via dzVents

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
vtwp
Posts: 8
Joined: Sunday 06 December 2020 19:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Setpoint control of Opentherm Gateway via dzVents

Post by vtwp »

Hi there,

I'm trying for a long time to control the room temperature setpoints via dzVents, for example to change the setpoint temperature when a switch is activated. I have an iSense thermostat and an Opentherm Gateway. This works fine for retrieving the OTGW data in Domoticz, and it also works to manually adapt the room temperature setpoint via the 'Utilities' tab in Domoticz. However, when I try to change the setpoint via dzVents, using:

Code: Select all

domoticz.devices('Room Setpoint').updateSetPoint(18)
It gives me this error in the log:
I have some experience in dzVents, but very little knowledge about json-commands, so I can use your help here. Some people found a solution in this thread last year: https://domoticz.com/forum/viewtopic.php?f=26&t=34506, but that didn't work for this case.
Who knows what goes wrong in the updateSetPoint command of dzVents? Or: because manually changing the temperature works in the utility tab: how can I actually reveal the commands that Domoticz is using for that route? Maybe I can copy that code to the dzVents script?

Thank you!
vtwp
Posts: 8
Joined: Sunday 06 December 2020 19:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Setpoint control of Opentherm Gateway via dzVents

Post by vtwp »

To reach the solution from a different angle: where can I find the Domoticz code that controls the Opentherm Gateway devices? I may be able to find back the correct code for updating the temperature setpoint in this Domoticz device code.
User avatar
waltervl
Posts: 5851
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Setpoint control of Opentherm Gateway via dzVents

Post by waltervl »

That question I can answer: https://github.com/domoticz/domoticz/tr ... t/hardware
There are several OTGW code files so you have to pick yours.

Regarding the link do you have 127.0.0.1 set as a registered security address in menu Setup-Settings (also mentioned on the DzVents documentation here https://www.domoticz.com/wiki/DzVents:_ ... h_Domoticz
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
vtwp
Posts: 8
Joined: Sunday 06 December 2020 19:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Setpoint control of Opentherm Gateway via dzVents

Post by vtwp »

Well, your suggestion about the security settings actually solved the problem! I did see that line in the manual, and I already had 127.0.0.* in the list of secure IP's, but apparently it didn't separate it well from the other IP's. There was a semicolon and a space (like 192.168.178.*; 127.0.0.*) and apparently the space is not allowed by Domoticz to catch the second IP. I've changed it to 192.168.178.*;127.0.0.*, and now it works!

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest