Blockly react on calculated values

Moderator: leecollings

Post Reply
njlammerts
Posts: 139
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Blockly react on calculated values

Post by njlammerts »

Is there a way to let the outcome of a blocky script be dependent on a calculation of measurements?

I have a 3 way valve which I want to open when the temperature of a sensor is say 20C + 5 and close on the same value - 3.
I have it now solved by edit the sensor adjustment value with +5, so the value is alway 5C off
User avatar
waltervl
Posts: 5389
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Blockly react on calculated values

Post by waltervl »

Blockly cannot do math. You have to switch to Dzvents to do something like this.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests