Variable comparison on decimal values All questions

Hi again!

As I now successfully get decimal values to variables from IFTTT, I'm having problems using them in sequences. I am trying to set a ventilation boost when shower humidity is higher than indoor humidity, but the sequence always exits at the comparison "if showerHumidity is above livingroomHumidity", even though shower humidity is higher.

Ideally what I would want to compare (and what I originally tried) is "if showerHumidity is above livingroomHumidity + 5", so that a small difference won't trigger the boost. 

My guess would be that the decimal values are being treated like strings in the comparison, and that's why it doesn't work.

Below are pictures of the variables, the sequence, and its log.

Thank you for this great service!



Asked by Fredrik on January 8, 2020, at 9:59am

Hi Fredrik, I think you're right and it's probably not considering them as numbers when doing the comparison. I'll take a closer look but may not be able to get to it until the weekend. I'll post back here once it's fixed.

Hi Fredrik, I've done some testing and confirmed it is actually comparing decimal values correctly.

Looking more closely at your sequence, when comparing one variable with another variable, you need to enclose the second variable in sequare brackets.  So, in the second step of your sequence you should have:

If showerHumidity is above [livingroomHumidity], then...

Give that a go and let me know if the sequence is working as expected.

Thank you for your help! Now my sequence seems to work.

That's great!

Post a reply

The SEQUEmatic bot is still new and learning. If you don't get the answer you need, just ask to speak with Derek and your chat will be transferred.