Page 1 of 1

How to handle devices with two values?

Posted: Sunday 06 March 2016 12:39
by Nomistake
Hi there,

I came across a problem/puzzle I couldn't solve. I have a power outlet / kWh meter (monitor) that I want to create a blockly event on:

Code: Select all

( iF (Monitor kWh - actual) > (10) )
    ( DO ( SET (Dummy Switch) = (ON) ) )
( ElseiF (Monitor kWh - actual) < (10) )
    ( DO ( SET (Dummy Switch) = (OFF) ) )
However when I look at "Show Current States" or when I get the value(s) from the Power Outlet / Monitor kWh in the log, I get the following value(s): 18.600;560.000 (=Watt;kWh)

I want the blockly compare to look at the first (18.600) of the two, but how do I make that happen? Because now the blockly doesnt work :(

Looking forward to your responses! :)