Page 1 of 1

possible to use watts from a device ( utility ) in blockly?

Posted: Friday 03 August 2018 21:37
by sion
Hi, i have a remote switch which measures power consumption.
is it possible to use the watts that i can see in utilitys in blockly ?

so i could switch a virtual switch when the watts is <300 for example?
eg,
if [ tumble_usage < 300 ]
set [ another_switch] = on

or would this need to be done in lua, or dzvents.

thanks.
Sion.

Re: possible to use watts from a device ( utility ) in blockly?

Posted: Sunday 05 August 2018 17:33
by elmortero
Haven't used Blockly in a long time so I had to test, but yes, it is possible:
block.JPG
block.JPG (19.92 KiB) Viewed 783 times

Re: possible to use watts from a device ( utility ) in blockly?

Posted: Sunday 05 August 2018 20:07
by sion
Awesome.
Thanks for this.
I don’t know why I didn’t see it :)