rnilssoncx / homebridge-pico

Expose Lutron Pico Remotes in Homebridge: https://github.com/nfarina/homebridge
MIT License
63 stars 6 forks source link

Button presses are flakey #26

Closed charlielag closed 3 years ago

charlielag commented 3 years ago

I'm using homebridge-pico to hook my Pico remotes up to my tuya and tplink switches.

I often have to press the buttons multiple times to get a command actually sent to my switches. Sometimes it works immediately. Sometimes it seems like the commands get queued up and sent all at once 10 seconds later.

I'm running latest builds of everything on a Raspberry Pi3.

Log Entries: [17/06/2021, 11:30:58] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,2,3 [17/06/2021, 11:30:58] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,2,4 [17/06/2021, 11:30:59] [homebridge-pico] Outside - On single press [17/06/2021, 11:31:02] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,3 [17/06/2021, 11:31:02] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,4 [17/06/2021, 11:31:02] [homebridge-pico] Outside - Off single press [TuyaAccessory] Sending AW39 {"2":false} [17/06/2021, 11:31:06] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,6,3 [17/06/2021, 11:31:06] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,6,4 [17/06/2021, 11:31:06] [homebridge-pico] Outside - Down single press [17/06/2021, 11:32:45] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,3 [17/06/2021, 11:32:45] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,4 [17/06/2021, 11:32:45] [homebridge-pico] Outside - Off single press [17/06/2021, 11:32:47] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,3 [17/06/2021, 11:32:47] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,4 [17/06/2021, 11:32:47] [homebridge-pico] Outside - Off single press [17/06/2021, 11:32:48] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,3 [17/06/2021, 11:32:48] [homebridge-pico] [192.168.50.191] Bus Data: ~DEVICE,5,4,4 [17/06/2021, 11:32:48] [homebridge-pico] Outside - Off single press [TuyaAccessory] Sending AW39 {"2":false}

Pico Config: { "buslog": "monitor", "servers": [ { "switches": [ { "pico": [ 2 ], "name": "EntryPico", "type": "PJ2-3BRL" }, { "pico": [ 4 ], "name": "LivingPico", "type": "PJ2-3BRL" }, { "pico": [ 5 ], "name": "Outside ", "type": "PJ2-3BRL" } ], "host": "192.168.50.191", "port": 23 } ], "longname": false, "_bridge": { "username": "0E:C7:E0:CF:31:7A", "port": 42729 }, "platform": "Pico" }

rnilssoncx commented 3 years ago

From your log there is no delay related to this plugin - it sees the commands from the Lutron and immediately send the press to HomeKit. Because HomeKit is the glue for all of this, the delays would be on the Apple side. If you are using an AppleTV as a hub that is not the 4k version I've seen that be unreliable. I've also had to reboot my homepods from time to time when I see slowness or even lack of actions executing (the one that is the active hub).

My only other thought for what could cause this would be a weak wireless signal to the device that is your HomeKit Hub (if it's a homepod).

I hope that helps. (sorry for the long delay here)

charlielag commented 3 years ago

Thanks for looking into this. I should have updated this issue. The fix was to enable "Agile multiband" on my ASUS router. Things work great now.