How to handle devices with two values?

Moderator: leecollings

Post Reply
Nomistake
Posts: 1
Joined: Saturday 01 August 2015 23:29
Target OS: Windows
Domoticz version:
Contact:

How to handle devices with two values?

Post 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! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest