Page 1 of 1

Differentiate device type

PostPosted: Wed Oct 19, 2016 2:02 am
by jmortizsilva
Hi,

Is there any way to differentiate plugs and lights device type? Currently almost all my devices are recognized as lights, so if I tell Siri to turn off the lights, turn off my MacMini. Is there any way to avoid this?

Thank you

Re: Differentiate device type

PostPosted: Wed Oct 19, 2016 8:09 am
by webdeck
jmortizsilva wrote:
Hi,

Is there any way to differentiate plugs and lights device type? Currently almost all my devices are recognized as lights, so if I tell Siri to turn off the lights, turn off my MacMini. Is there any way to avoid this?

Thank you


In your config.json, you would use the treatAsSwitchIds setting to list the IDs that you want to be considered as switches instead of lightbulbs. Please see the included sampleconfig.json for an example.

-Mike

Re: Differentiate device type

PostPosted: Sat Oct 22, 2016 11:34 am
by jmortizsilva
Hello,

Although I followed the installation process recommended in this forum, I have never get the sample files. How I can access the sample file?

Thank you

Re: Differentiate device type

PostPosted: Sat Oct 22, 2016 3:12 pm
by webdeck
jmortizsilva wrote:
Hello,

Although I followed the installation process recommended in this forum, I have never get the sample files. How I can access the sample file?

Thank you


It is located here: /opt/local/lib/node_modules/homebridge-indigo/sampleconfig.json

It is also in the README here: https://www.npmjs.com/package/homebridge-indigo

-Mike

Re: Differentiate device type

PostPosted: Sun Oct 23, 2016 2:13 am
by jmortizsilva
Great, Thanks a lot.