Skip to content

1 Door (with multi channel device)

Ben edited this page Apr 27, 2021 · 5 revisions

⚠️ It is important to have:

  • channel 0 connected to the 'open' motor and
  • channel 1 connected to the 'close' motor

When fully opening/closing the door, the plugin will turn the appropriate channel ON for the duration of the specified operationTime and then turn the channel OFF. When opening/closing the door to a custom position (e.g. 50% open) then the plugin will calculate the time that the channels need to be ON based on the operationTime.

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

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

A configuration example:

[
   {
      "deviceId": "10009553c8",
      "type": "door",
      "operationTime": 50
   }
]
  • If using the Homebridge UI, it's easier to use the plugin settings screen to configure the simulation
  • If using the HOOBS UI, copy and paste the example above into the 'Groups' box on the plugin settings screen
  • If manually editing the config JSON, don't forget to change the first line to "groups": [

Available Options

Entry Type Required Default Explanation
deviceId string Yes "" eWeLink Device ID.
label string No "" This setting has no effect except to be a helpful label for identifying which device this is when editing the configuration.
type string Yes "" In this case this must be set to "door".
operationTime int Yes 100 The time in deciseconds that the door takes to open/close. Must be 20 or more.
ipAddress string No "" You can manually set the IP address for this device if it cannot be discovered by the plugin.
overrideDisabledLogging bool No false If true, updates for this device will be added to the log, even if the general 'Disable Device Logging' setting is true.