Page 1 of 1

Update TRV Setpoint from a variable or virtual setpoint

Posted: Friday 01 January 2021 23:09
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

Re: Update TRV Setpoint from a variable or virtual setpoint

Posted: Saturday 09 January 2021 22:03
by Stubblemonster
Does anyone have any suggestions on this? If I can't use Blockly, is there another way?

Re: Update TRV Setpoint from a variable or virtual setpoint

Posted: Sunday 10 January 2021 10:53
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.

Re: Update TRV Setpoint from a variable or virtual setpoint

Posted: Saturday 06 February 2021 23:35
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

Re: Update TRV Setpoint from a variable or virtual setpoint

Posted: Sunday 07 February 2021 1:12
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

Re: Update TRV Setpoint from a variable or virtual setpoint

Posted: Tuesday 29 June 2021 22:10
by Alain
Did you ever get something working?