Skip to content

1 Door (with multi channel device)

Ben edited this page Jul 8, 2021 · 5 revisions

This simulation can be setup via the Homebridge/HOOBS UI, adding an entry in the 'Multi Channel Devices' section and setting the Device ID and the 'Show As' to '1 Door'.

Or if you prefer to edit the configuration directly, set the deviceId and choose the showAs option to "door". For example:

"multiDevices": [
   {
      "deviceId": "10009553c8",
      "deviceModel": "4ch",
      "showAs": "door",
      "operationTime": 100
   }
]

⚠️ 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. If the door has a different UP and DOWN time then you can set operationTime for the time UP and operationTimeDown for the time DOWN.

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.