Djelibeybi / homebridge-button-platform

A Homebridge platform plugin to create virtual buttons that respond to HTTP requests from things like Flic buttons or an Elgato Stream Deck.
https://omg.dje.li/homebridge-button-platform/
Apache License 2.0
57 stars 3 forks source link

Phantom button press when bridge reboots #141

Open mcleanrs opened 2 years ago

mcleanrs commented 2 years ago

I installed this plugin and configured a few buttons.

I am using the buttons to trigger music playing on HomePods.

I am triggering from other software. This part works great.

But for some reason when I reboot the "child bridge" in homebridge, then it is like the buttons get triggered or re-triggered and music starts playing on my homepods even though I have not done anything since the bridge was rebooted to push the buttons.

Nothing too interesting in the logs.

[10/23/2022, 4:13:07 PM] [Button Platform] Child bridge process ended [10/23/2022, 4:13:07 PM] [Button Platform] Process Ended. Code: 143, Signal: null [10/23/2022, 4:13:14 PM] [Button Platform] Restarting Process... [10/23/2022, 4:13:14 PM] [Button Platform] Launched child bridge with PID 91334 [10/23/2022, 4:13:14 PM] Registering platform 'homebridge-button-platform.button-platform' [10/23/2022, 4:13:14 PM] [Button Platform] Loaded homebridge-button-platform v1.5.1 child bridge successfully [10/23/2022, 4:13:14 PM] Loaded 4 cached accessories from cachedAccessories.0E716D0970CA. [10/23/2022, 4:13:14 PM] [Button Platform] homebridge-button-platform v1.5.1, node v16.16.0, homebridge v1.5.0, homebridge-lib v5.6.8 [10/23/2022, 4:13:14 PM] [Button Platform] warning: recommended version: node v16.17.1 LTS [10/23/2022, 4:13:14 PM] [Button Platform] Listening on port 3001 for inbound button push event notifications [10/23/2022, 4:13:14 PM] Homebridge v1.5.0 (HAP v0.10.4) (Button Platform) is running on port 57871. [10/23/2022, 4:13:14 PM] [Button Platform] hardware: Mac mini (M1, 2020) [10/23/2022, 4:13:14 PM] [Button Platform] os: macOS Monterey 12.4.0 (21F79) [10/23/2022, 4:13:14 PM] [Button Platform] restored 4 accessories from cache [10/23/2022, 4:13:15 PM] [Button Platform] The Event URI for Play1 is: /button-play1 [10/23/2022, 4:13:15 PM] [Button Platform] The Event URI for Play2 is: /button-play2 [10/23/2022, 4:13:15 PM] [Button Platform] The Event URI for Play3 is: /button-play3 [10/23/2022, 4:13:15 PM] [Button Platform] The Event URI for Play4 is: /button-play4