simple additions / concatenate with Blockly ?

Moderator: leecollings

Post Reply
flt2
Posts: 5
Joined: Monday 25 May 2020 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

simple additions / concatenate with Blockly ?

Post by flt2 »

Hi !
is there a way to perform simple computation in Blockly, such as string concatenate, number addition or soustraction ?
I'd like to perform checks like "if metric1 is more than metric2+10" and build personalised mails mixing several informations (thus concatenate).

Sorry if I missed an obvious block :oops: (in that case, I need all the more your help ;-) )

Regards,
solarboy
Posts: 345
Joined: Thursday 01 November 2018 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.6
Location: Portugal
Contact:

Re: simple additions / concatenate with Blockly ?

Post by solarboy »

This is something I have wanted also, I have resorted to ridiculous piles of blocks to do simple math for exactly the case you mention, for me it was comparing temperatures with an offset. Would be great to have for example "if temp1-temp2 > x then..."
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: simple additions / concatenate with Blockly ?

Post by waltervl »

This has been a long requested functionality but it is hard to implement for some reason.

You can use dzVents for this kind of more complex scripts. viewtopic.php?f=59&t=18143
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 1 guest