Add input_boolean switch detection
Closed this issue · 4 comments
vijay-prema commented
Thanks for this extension. One big improvement would be to add the input_boolean
switch type to the VALID_TOGGLABLES
detection. This made the extension much more useful to me as I use input_boolean
as virtual software switches to run scripts to activate an IR blaster for turning on and off media center, AC and appliances.
Only 1 change needs to be made to support this:
Change line 11 in utils.js from:
const VALID_TOGGLABLES = ['switch.', 'light.', 'fan.'];
to:
const VALID_TOGGLABLES = ['switch.', 'light.', 'fan.', 'input_boolean.'];
geoph9 commented
Hi! Sounds like a good idea, thanks for proposing this. Do you want to make a PR?
vijay-prema commented
ok let me try making the PR
vijay-prema commented
made PR #29