How can I set max boiler temp from LUA?
Moderator: leecollings
-
- Posts: 728
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
How can I set max boiler temp from LUA?
I have been using the OTWG plugin for a long time.
Over the past year, I have been fine tuning some settings in the boiler to optimize it.
The max boiler temperature is an important variable: I brought it down from 80'C to about 50, but during the cold weather period this proved to be too optimistic. So I increased it to 60'C, and it now performs OK.
The changes were all done manually on the control panel of the Remeha Calenta boiler.
I was wondering if it is possible to change the boiler setting from a LUA script. This would make it possible to set the value based on the outside temperature, for instance.
Can anyone give me a hint, perhaps even a script example of how to inject a command?
Over the past year, I have been fine tuning some settings in the boiler to optimize it.
The max boiler temperature is an important variable: I brought it down from 80'C to about 50, but during the cold weather period this proved to be too optimistic. So I increased it to 60'C, and it now performs OK.
The changes were all done manually on the control panel of the Remeha Calenta boiler.
I was wondering if it is possible to change the boiler setting from a LUA script. This would make it possible to set the value based on the outside temperature, for instance.
Can anyone give me a hint, perhaps even a script example of how to inject a command?
Hans
-
- Posts: 628
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
Looking at the OTGW specification here:
http://otgw.tclcode.com/firmware.html#configuration
you probably have to give a "SH=xx" command or a "CS=xx" command where xx is the desired temperature.
I am not sure which one to use and the responsibility is all yours ....(is it to set a maximum or is it to switch the heating on? will it stop automatically? is it safe?)
Anyway, in domoticz (dzvents, not lua) you can use something like this to send a command to the Opentherm Gateway:
The 8 in idx=8 is the idx number of the Opentherm gateway in the hardware tab, so you need to adapt it to your setting.
The TC=16 is the command I use to set the thermostat setpoint to 16 so that needs to be replaced by your command.
http://otgw.tclcode.com/firmware.html#configuration
you probably have to give a "SH=xx" command or a "CS=xx" command where xx is the desired temperature.
I am not sure which one to use and the responsibility is all yours ....(is it to set a maximum or is it to switch the heating on? will it stop automatically? is it safe?)
Anyway, in domoticz (dzvents, not lua) you can use something like this to send a command to the Opentherm Gateway:
Code: Select all
domoticz.openURL('http://127.0.0.1:8080/json.htm?type=command¶m=sendopenthermcommand&idx=8&cmnd=TC=16')
The 8 in idx=8 is the idx number of the Opentherm gateway in the hardware tab, so you need to adapt it to your setting.
The TC=16 is the command I use to set the thermostat setpoint to 16 so that needs to be replaced by your command.
-
- Posts: 628
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
and, for testing, you can send manual commands from the command box in the hardware setup of the OTGW.
-
- Posts: 728
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: How can I set max boiler temp from LUA?
Looking at the document with the commands, I would think SH is the one. But when I try the command via the test command field in the OTGW hardware line, any value higher than 60 is refused with response BV ("Bad Value"). So, realistically, this cannot be the max boiler temperature. I am quite sure it can be 80 or 90, since this is usually the default in new boilers...
Hans
-
- Posts: 628
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
In your first post you mentioned that you did set the maximum to 60 and now you are asking it to go over the maximum? Could that be the cause of the error message?
-
- Posts: 365
- Joined: Sunday 03 July 2016 16:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.7
- Location: Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
Imho you should use blockly together with a dummy thermostat device.
just a few items to use. But also dzVents is very easy using command:
according Wiki :Thermostat set point
- setPoint: Number.
- updateSetPoint(setPoint):Function. Supports command options.
-Bart
just a few items to use. But also dzVents is very easy using command:
according Wiki :Thermostat set point
- setPoint: Number.
- updateSetPoint(setPoint):Function. Supports command options.
-Bart
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
-
- Posts: 728
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: How can I set max boiler temp from LUA?
Correct, I did want to adjust the maximum boiler water temperature to (or below) 60 'C.
But my problem is the fact that it is impossible to set it anything higher: this may indicate that I am playing with the wrong command! The max boiler temp should be able to be set to 80 or 90.
Hans
-
- Posts: 728
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: How can I set max boiler temp from LUA?
I am not trying to set the thermostat set point, but the maximum boiler water temperature ("ketelwater temp").BartSr wrote: ↑Tuesday 07 March 2023 12:25 Imho you should use blockly together with a dummy thermostat device.
just a few items to use. But also dzVents is very easy using command:
according Wiki :Thermostat set point
- setPoint: Number.
- updateSetPoint(setPoint):Function. Supports command options.
-Bart
By setting this to a lower value, it makes the boiler send water into the system that is not so hot. Since I have under-floor heating, it makes no sense to send 85'C water into the system, since the floor thermostat will reduce it to 35'C anyway.
Decreasing the boiler temp will also decrease loss of energy in the pipes.
Hans
-
- Posts: 628
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
What I mean is: on the boiler itself, via the control panel, you have set the maximum manually to 60 and now you give it a command via OTGW to go higher.manjh wrote: ↑Tuesday 07 March 2023 12:54Correct, I did want to adjust the maximum boiler water temperature to (or below) 60 'C.
But my problem is the fact that it is impossible to set it anything higher: this may indicate that I am playing with the wrong command! The max boiler temp should be able to be set to 80 or 90.
Easy to test: change the manual setting to 90 on the boiler and then send the same OTGW command again. Same error?
-
- Posts: 728
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: How can I set max boiler temp from LUA?
I had already thought of that, but it did not change behaviour. It still throws an error on anything higher than 60.willemd wrote: ↑Tuesday 07 March 2023 15:13What I mean is: on the boiler itself, via the control panel, you have set the maximum manually to 60 and now you give it a command via OTGW to go higher.manjh wrote: ↑Tuesday 07 March 2023 12:54Correct, I did want to adjust the maximum boiler water temperature to (or below) 60 'C.
But my problem is the fact that it is impossible to set it anything higher: this may indicate that I am playing with the wrong command! The max boiler temp should be able to be set to 80 or 90.
Easy to test: change the manual setting to 90 on the boiler and then send the same OTGW command again. Same error?
Hans
-
- Posts: 628
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
Maybe you find some more expertise at the OTGW forum:
https://www.domoticaforum.eu/viewforum.php?f=75
have a look at this thread:
https://www.domoticaforum.eu/viewtopic. ... 6bc9a74d59
https://www.domoticaforum.eu/viewforum.php?f=75
have a look at this thread:
https://www.domoticaforum.eu/viewtopic. ... 6bc9a74d59
-
- Posts: 728
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: How can I set max boiler temp from LUA?
OK, that helps. The discussion in that thread shows that this is not really straightforward. I wasn't doing anything wrong.willemd wrote: ↑Tuesday 07 March 2023 16:26 Maybe you find some more expertise at the OTGW forum:
https://www.domoticaforum.eu/viewforum.php?f=75
have a look at this thread:
https://www.domoticaforum.eu/viewtopic. ... 6bc9a74d59
I will think about this some more, and then decide if I want to go any further with this, or stick to the manual change of the max temp every once in a while...
Hans
-
- Posts: 365
- Joined: Sunday 03 July 2016 16:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.7
- Location: Netherlands
- Contact:
Re: How can I set max boiler temp from LUA?
Sorry, misread your question. Meanwhile, I just moved to dzVents, I would 'upgrade' your scripts to dzVents. Easier and more powerfull.manjh wrote: ↑Tuesday 07 March 2023 12:57I am not trying to set the thermostat set point, but the maximum boiler water temperature ("ketelwater temp").BartSr wrote: ↑Tuesday 07 March 2023 12:25 Imho you should use blockly together with a dummy thermostat device.
just a few items to use. But also dzVents is very easy using command:
according Wiki :Thermostat set point
- setPoint: Number.
- updateSetPoint(setPoint):Function. Supports command options.
-Bart
By setting this to a lower value, it makes the boiler send water into the system that is not so hot. Since I have under-floor heating, it makes no sense to send 85'C water into the system, since the floor thermostat will reduce it to 35'C anyway.
Decreasing the boiler temp will also decrease loss of energy in the pipes.
-Bart
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Who is online
Users browsing this forum: No registered users and 0 guests