geoph9/hass-gshell-extension

Add input_boolean switch detection

Closed this issue · 4 comments

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.'];

Hi! Sounds like a good idea, thanks for proposing this. Do you want to make a PR?

ok let me try making the PR

made PR #29

Thanks! PR #29 closes this.