Update TRV Setpoint from a variable or virtual setpoint

Moderator: leecollings

Post Reply
Stubblemonster
Posts: 5
Joined: Monday 07 December 2020 18:52
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Update TRV Setpoint from a variable or virtual setpoint

Post by Stubblemonster »

Hiya,

I have used Blockly to detect a virtual switch going on then set a variable value (tried float and integer) to the current value from a TRV Setpoint and then boost the setpoint to it's max value of 28. This works just fine.

Next I have a second Blockly script that detects the switch going off and tries to update the setpoint of the TRV from the variable I saved before. This doesn't work. I can't use the dedicated setpoint= object as this only takes a value so I used Set Object = Object

You can probably guess, I am testing the "Override" functionality of a thermostat which will eventually switch on a boiler and boost the TRV's for a set period of time before turning off the heating again and bringing the TRV's back to their previous value. Code shows:

Image

Any iea what I can do to make this work?

Thanks

Graham
Stubblemonster
Posts: 5
Joined: Monday 07 December 2020 18:52
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Update TRV Setpoint from a variable or virtual setpoint

Post by Stubblemonster »

Does anyone have any suggestions on this? If I can't use Blockly, is there another way?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Update TRV Setpoint from a variable or virtual setpoint

Post by waaren »

Stubblemonster wrote: Saturday 09 January 2021 22:03 Does anyone have any suggestions on this? If I can't use Blockly, is there another way?
Blockly does not offer everything classic Lua, dzVents or Python can do. So you could look in that direction.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Stubblemonster
Posts: 5
Joined: Monday 07 December 2020 18:52
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Update TRV Setpoint from a variable or virtual setpoint

Post by Stubblemonster »

Thanks @waaren

I work in IT but I am not a programmer over and above BBC basic from the 80's lol. It's going to be a lot to learn I feel. Are there any tips on where to start learning and what would be best? I mean Python sounds most interesting for me because I can use it elsewhere so specifics on how to use Python with Domoticz would be great!

Thanks

Graham
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Update TRV Setpoint from a variable or virtual setpoint

Post by waaren »

Stubblemonster wrote: Saturday 06 February 2021 23:35 Python sounds most interesting for me because I can use it elsewhere so specifics on how to use Python with Domoticz would be great!
I don't do a lot in Python but maybe https://www.domoticz.com/wiki/index.php?search=Python can point you in the right direction
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Alain
Posts: 166
Joined: Sunday 26 April 2020 5:27
Target OS: Linux
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: Update TRV Setpoint from a variable or virtual setpoint

Post by Alain »

Did you ever get something working?
Hue | Zigbee2Mqtt | MQTT | P1 | Xiaomi | RFXCom | Modbus | Qlima | Solaredge
TP-Link | Plugwise | Thermosmart | Node-Red | Grafana | Master and 5 remote servers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest