KraigM / homebridge-nest

Nest plugin for HomeBridge
210 stars 72 forks source link

Add Service.Switch to set away / home feature for Nest Cam. #177

Open outaTiME opened 6 years ago

outaTiME commented 6 years ago

Hi guys,

im add a missing feature for set away / home on Nest Cam using Switch ... I hope you find it useful !!!

outaTiME commented 6 years ago

Probably this switch logic must be in base class NestDeviceAccessory for each Nest device, but i don't know if im doing the things in right way.

NestDeviceAccessory has addAwayCharacteristic method and is used by NestThermostatAccessory and NestCamAccessory but i don't understand what it does. Probably addAwayCharacteristic must be use and boolean value instead of number.

I'll be waiting for your feedback, thanks !!!