Checking Output Sta...
 
Notifications
Clear all

[Solved] Checking Output State in Conditional Function statement  

  RSS

lilian
(@lilian)
New Member
Joined: 1 year ago
Posts: 3
November 15, 2020 8:06 am  

Hello,

I created a conditional function in which I want to check an Output State (a pump)

I created the condition: self.condition("{a964668f}") returns "on" if the output is on and "off" if the output is off.

I used that condition in statement: pump = self.condition("{a964668f}")

But I'm not sure how to do the check: it seems that -> pump == "on" does not work.

 

Thanks for your help.

Lilian


Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 6 years ago
Posts: 368
November 23, 2020 8:55 pm  

This is an issue that was recently fixed and will be available in the next release.

Mycodo Developer


ReplyQuote