kiwi-cam / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
304 stars 95 forks source link

Garage Door Opener Not Sending Stop Signal Before Open/Close Commands #711

Open unit117 opened 5 months ago

unit117 commented 5 months ago

Describe the bug When using the Homebridge Broadlink RM plugin with the garage-door-opener accessory, the plugin only sends the open or close signal without sending the stop (lock/unlock) signal first. This causes the garage door to not operate correctly since it requires a stop command before open or close.

To Reproduce Steps to reproduce the behavior:

  1. Add the garage-door-opener accessory to Homebridge.
  2. Use the Home app to send an open or close command to the garage door.
  3. Observe that the stop signal is not sent before the open or close command.
  4. The garage door does not operate correctly.

Expected behavior The Broadlink RM plugin should send the stop signal first, followed by the open or close signal when using the Home app.

Relevant Logs:

[21/06/2024, 13:39:12] [BroadlinkRM] 车库测试3 setSwitchState: true
[21/06/2024, 13:39:12] [BroadlinkRM] 车库测试3 sendHex (192.168.8.226; 34:ea:34:58:66:c6) 7863320017071707170717070915170717071707170717070915170709150915091517070915091517071707091509150915091509DC000000000000
[INFO] Command Acknowledged
[21/06/2024, 13:39:24] [BroadlinkRM] 车库测试2 setSwitchState: true
[21/06/2024, 13:39:24] [BroadlinkRM] 车库测试2 sendHex (192.168.8.226; 34:ea:34:58:66:c6) 78873200160717070815170716071607170716070915160709150815081516070915081508150815081508151707160709DC16071607000000000000
[INFO] Command Acknowledged
[21/06/2024, 13:39:46] [BroadlinkRM] 车库 Garage Door setDoorTargetState: 1
[21/06/2024, 13:39:46] [BroadlinkRM] 车库 Garage Door sendHex (192.168.8.226; 34:ea:34:58:66:c6) 78873200160717070815170716071607170716070915160709150815081516070915081508150815081508151707160709DC16071607000000000000
[21/06/2024, 13:39:46] [BroadlinkRM] 车库 Garage Door setDoorCurrentState: closing
[INFO] Command Acknowledged
[21/06/2024, 13:39:56] [BroadlinkRM] 车库 Garage Door setDoorCurrentState: closed
[21/06/2024, 13:39:58] [BroadlinkRM] 车库 Garage Door setDoorTargetState: 0
[21/06/2024, 13:39:58] [BroadlinkRM] 车库 Garage Door sendHex (192.168.8.226; 34:ea:34:58:66:c6) 7859320016071607160716070816160816081608160816070816160808160816081516081607160808160816081608160816081608DC000000000000
[21/06/2024, 13:39:58] [BroadlinkRM] 车库 Garage Door setDoorCurrentState: opening
[INFO] Command Acknowledged
[21/06/2024, 13:40:08] [BroadlinkRM] 车库 Garage Door setDoorCurrentState: opened
[21/06/2024, 13:40:52] [BroadlinkRM] 车库 Garage Door setDoorTargetState: 1
[21/06/2024, 13:40:52] [BroadlinkRM] 车库 Garage Door sendHex (192.168.8.226; 34:ea:34:58:66:c6) 78873200160717070815170716071607170716070915160709150815081516070915081508150815081508151707160709DC16071607000000000000
[21/06/2024, 13:40:52] [BroadlinkRM] 车库 Garage Door setDoorCurrentState: closing
[INFO] Command Acknowledged
[21/06/2024, 13:41:02] [BroadlinkRM] 车库 Garage Door setDoorCurrentState: closed

Expected behavior The Broadlink RM plugin should send the stop signal first, followed by the open or close signal when using the Home app.

Additional context Using separate switches for open, close, and stop, the garage door operates correctly. Specifically:

However, using the garage-door-opener accessory does not send the stop signal before open or close.