tommasomarchionni / homebridge-openHAB

Homebridge plugin for openHAB
Apache License 2.0
49 stars 18 forks source link

how to define outlet or light items? #2

Closed snizzleorg closed 8 years ago

snizzleorg commented 8 years ago

currently switch items exist. iOS recognises now all switches as lamps. can they also somehow be defined as outlets? maybe via customAttrs?

jdwhite commented 8 years ago

Or how about fans versus lights so when I say "turn on the lights" my ceiling fan doesn't turn on?

tommasomarchionni commented 8 years ago

Thank you for your feedback! I will add this feature via customAttrs in the next days.

jdwhite commented 8 years ago

Thanks! Looking forward to it.

snizzleorg commented 8 years ago

Great! Thanks! Any idea about other types - smoke detectors motion detectors etc? will this be possible at all?

ssvenn commented 8 years ago

I would really love to see an item type for garage doors so you could use "open" and "close", I tried naming a switch "garage door" so i could say "turn on garage door" but Siri catches "garage" and complains about not finding any garage openers.

The final thing on the wishlist is lock items so you could say "unlock the front door", that should cover most equipment on the market right now.

snizzleorg commented 8 years ago

As I see there is a couple of items now. Lightbulb, Fan etc. I however would need a outlet item (for things like video projector etc). When defined as switch items somehow siri always thinks they are lamps.

snizzleorg commented 8 years ago

those are the available types in homekit:

https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js

tommasomarchionni commented 8 years ago

Outlet added! ;)

snizzleorg commented 8 years ago

Cool! thanks. I will try it out tomorrow and let you know how!

snizzleorg commented 8 years ago

Works beautifully now. Thanks!