homebridge-script2 icon indicating copy to clipboard operation
homebridge-script2 copied to clipboard

multiple "on_value" values

Open gimmickyboot opened this issue 5 years ago • 1 comments

I'd like to be able to specify multiple "on_value" values. If the script returns any of the values listed the switch would then be considered as on. Any chance you could add this in?

gimmickyboot avatar Jan 22 '21 10:01 gimmickyboot

Probably not what you're looking for and definitely slightly more inefficient but if its pressing you could write a shell script to call the main script and then if any of the results you want to see are returned, then this script returns true, otherwise just false.

mayurankv avatar Feb 18 '21 23:02 mayurankv