If--Then Looking For A Better Way


#1

I am using Rule Machine in Hubitat to sync status between HE and Z-Box. I am doing this via 26 variables. However, because there is no Do Case, I have to make 52 If Thens – Off and On for 26 variables. Maybe a Webcore solution?

My code looks like this:

IF (Status is off(F) THEN
Send GET to: http://name:[email protected]/api/callAction?deviceID=999&name=turnOff
END-IF

52 times, changing the ID number – for one On and one Off.

Any ideas?