Conditions not working as intended

This forum is for questions about conditions.
CraigM
Posts: 611
Joined: Sun Oct 28, 2007 7:01 pm

Conditions not working as intended

Post by CraigM »

I discovered this by accident and its really causing grief with my schedules. Especially since I have this type of logic on almost everything in my house.

I have 2 irrigation schedules both at 6pm. The one who's conditions are met should be running, but they are BOTH running.
PM1.png
PM1.png (10.59 KiB) Viewed 3538 times
This should be satisfied for temps 100-101-102-103-104-105-106-107-108-109 [as they are between 99 and 110]


PM2.png
PM2.png (10.67 KiB) Viewed 3538 times
This should be satisfied for temps 110-111-112... [as they are greater than 109]

Why are they both being satisfied?
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Conditions not working as intended

Post by jay (support) »

Are those the only conditions? If not, take a snap of the entire rule editor control.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Conditions not working as intended

Post by jay (support) »

Ah - are your temps integers or floats? If they are floats, then 109.X (where X is > 0) would cause both to run.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
CraigM
Posts: 611
Joined: Sun Oct 28, 2007 7:01 pm

Re: Conditions not working as intended

Post by CraigM »

In this case the Wunderground plugin displays XXX.Xº [as does NOAA, and Oregon Scientific sensors]

So, are you saying the first one should be 99.9 and 110.0 to cover 100-109, and the second one needs to be changed to Greater Than 109.9, which will cover 110 and up?

I assume the dialog will accept decimals?
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Conditions not working as intended

Post by jay (support) »

If the state you're selecting for the WUnderground device is in fact showing a degree symbol then I'm surprised it's working at all. The condition expects the selected device state to have either an integer or float.

Yes, the dialog accepts floats...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
DaveL17
Posts: 6845
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Conditions not working as intended

Post by DaveL17 »

Just to chime in on the WU data.

Current Conditions - Temperature is linked to the custom device state 'temp'.

Code: Select all

     temp : 80.7 (real)
     temp.ui : 81° (string)
By using float criteria, your conditions should work as you expect.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
Post Reply

Return to “Conditions”