washcroft / homebridge-http-garagedoorcontroller

An HTTP based Garage Door/Light plugin for HomeBridge
MIT License
15 stars 7 forks source link

Light and sensor #12

Open AxoIIpaoli opened 6 years ago

AxoIIpaoli commented 6 years ago

Hello, First I'd like to thank you for this plugin, it's awesome. I just don't have a light on my garage and don't know how to not use this functionality. Plus I don't have yet sensors the door and would like to send the state close or open only after sending the correspond command, because right now it is always detected as open. If you could help me, thank you and thank you for the plugin. Regards

washcroft commented 6 years ago

First I'd like to thank you for this plugin, it's awesome.

Thank you.

I just don't have a light on my garage and don't know how to not use this functionality.

Remove the lightName field from your HomeBridge config:

"lightName": "Garage Light",

Plus I don't have yet sensors the door and would like to send the state close or open only after sending the correspond command, because right now it is always detected as open.

Remove the doorState fields from your HomeBridge config:

"doorStateMethod": "GET",
"doorStateUrl": "/controller/door/status",
"doorStateField": "door-state",

...also, set the doorOperationSeconds field to the number of seconds it takes for your door to open/close (to simulate the door opening/closing in HomeKit):

"doorOperationSeconds": 60,

AxoIIpaoli commented 6 years ago

Thank you for your fast response, however I now get a "no response" message into the home app. Here is a copy of my config.json, note that I use your Arduino programme into my esp8266.

{ "accessory": "HttpGarageDoorController", "name": "Portail", "doorOperationSeconds": 20, "httpHost": "192.168.0.76", "httpPort": 80, "httpSsl": false, "httpStatusPollMilliseconds": 4000, "httpRequestTimeoutMilliseconds": 10000, "httpHeaderName": "X-API-Key", "httpHeaderValue": "MyAPIKey", "oauthAuthentication": true, "oauthSignatureMethod": "HMAC-SHA1", "oauthConsumerKey": "username", "oauthConsumerSecret": "pass", "oauthToken": "MyOAuthToken", "oauthTokenSecret": "MyOAuthTokenSecret", "apiConfig": { "apiType": "Generic", "doorSuccessField": "success", "doorOpenMethod": "PUT", "doorOpenUrl": "/controller/door/open", "doorCloseMethod": "PUT", "doorCloseUrl": "/controller/door/close" } }

Thank you