This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Compare variables to an array instead of running 3 consecutive flow?
viix
Member
I have a flow that polls an API for the status of a device and it has 40 states. The variables are in 2 letter format and I have narrowed down the activation of the flows to 3 flows but is there a cleaner way to compare the better logic variable to just 1 flow card, i.e. if variable is either of these (AA, AS, VD, DF, GS, IM, ND) then execute? at the moment I'm using the "or" section of the flow editor but there is a limitation of 3 per flow so I've to execute another flow under the else and re-compare that.
Comments
but I guess you could do with 7 OR's.... That is not Possible with Homey!
But you could use 7 AND's