condition, if value is NOT

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

condition, if value is NOT

Post by daferra »

try to figure out how I need to make a event with a value, boolean NOT

I have two devices (google latitude) that I want to use to put the system on "soft" away.

I created a marker "home" so that I can monitor if we, our mobile devices are home. I now want to make a event that when device x = NOT home.

Dev_75_Value == "Home" gives me a evaluation "true" when I am home
Dev_75_Value Not "Home" or Dev_75_Value = Not "Home" don't give me "false" when I am not at home.

Can someone explane to me how I create a event that can do this?
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: condition, if value is NOT

Post by j.hoekstra »

Wouldn't the operator != or <> do the same?
I programmed a few conditions with *_Value <> 0...

I would advise to make a trigger in the form of:

Code: Select all

if [device][lastseen]
(radiobutton) <> " "(that is double-quote_space_double-quote)
Then condition where you evaluate a device(in this case the same device) via:

Code: Select all

Dev_nn_Value <> "Home"
Then the action:

Code: Select all

Set [device] [Value1] To On 
daferra
Starting Member
Starting Member
Posts: 42
Joined: Wed Jul 15, 2009 10:42 am
Location: Netherlands

Re: condition, if value is NOT

Post by daferra »

Thanks for explaining to me.

I first tried the operator != but this is not working. The operator <> is working great. I now build it with <>

thanks again
Post Reply

Return to “DomotiGa Forum”