Skip to content

1 Garage Door (with single channel device)

Ben edited this page Mar 4, 2021 · 17 revisions

It is important to have the device "inched" via the eWeLink app (I would recommend 0.5 seconds).

Your garage door must be able to respond to this "pulse" by starting to move up/down and then stopping with another "pulse". The plugin will send an initial request to turn the switch ON (and then be turned off by the eWeLink "inching" setting) and the garage door will start moving. The plugin will then send another request to turn the switch ON (and then be turned off by the eWeLink "inching" setting) after the operationTime configuration setting to stop the garage door moving after the appropriate time.

The operationTime is defined in deciseconds so time how long it takes to open/close the garage and multiply this by ten.

Since it is impossible for the switch to report the correct position of the garage door to Homebridge, the plugin relies on a cached state which changes each time the garage door is opened/closed. There may be times when this becomes out of sync. If this happens, please make sure the garage door is fully closed, then remove the accessory from the Homebridge cache using this guide. The accessory will be added again with a CLOSED status which will match the garage door.

It is possible to use a Sonoff DW2 sensor to determine the correct position of the garage door, using the sensorId option.

It is also possible to use an existing Sonoff single-channel device (BASIC, MINI, etc) as a DIY method to set the Obstruction Detected property of the garage. If the switch is ON then Obstruction Detected will be set to Yes. This can be configured using the obstructId option.

A simple configuration example without a sensor or switch for Obstruction Detected:

[
   {
      "deviceId": "10009553c8",
      "type": "garage",
      "setup": "oneSwitch",
      "operationTime": 100
   }
]

A more complex example with both a sensor and a switch for Obstruction Detected:

[
   {
      "deviceId": "10009553c8",
      "type": "garage",
      "setup": "oneSwitch",
      "operationTime": 75,
      "sensorId": "10009553c9",
      "obstructId": "10009553c0"
   }
]