luisiam / homebridge-cmdswitch2

CMD Plugin for HomeBridge (API 2.0): https://github.com/nfarina/homebridge
Apache License 2.0
176 stars 29 forks source link

Homekit rejecting Homebridge when switch is activated and reports "on" #54

Open scoobaspeaz opened 4 years ago

scoobaspeaz commented 4 years ago

Homebridge gets rejected by HomeKit and all my Homebridge accessories become unresponsive when the below accessory is activated and reports that its "on". Any idea what is breaking here? Homebridge will eventually establish with HomeKit after about 3 mins or so. I am testing this out using the "EVE" app and checking the accessory ID details for the Homebridge hub. It will said failed and then eventually success. Without the below listed in my config.json file this never happens and my other accessories work as intended. If I remove this from my config.json file then I don't have any issues at all except I can't use the below command cause it doesn't exist anymore.

Here is the state change when HomeKit wasn't able to communicate anymore with Homebridge: Jan 06 02:21:44 homebridge homebridge[9455]: [1/6/2020, 2:21:44 AM] [CMD Switch] Basement Playstation 4 identify requested! Jan 06 02:21:49 homebridge homebridge[9455]: [1/6/2020, 2:21:49 AM] [CMD Switch] Basement Playstation 4 identify requested! Jan 06 02:21:51 homebridge homebridge[9455]: [1/6/2020, 2:21:51 AM] [CMD Switch] Basement Playstation 4 is turned on. Jan 06 02:22:27 homebridge homebridge[9455]: [1/6/2020, 2:22:27 AM] [CMD Switch] Basement Playstation 4 is on.

Here is my configuration: { "platform": "cmdSwitch2", "name": "CMD Switch", "switches": [ { "name": "Basement Playstation 4", "on_cmd": "ps4-waker -d 192.168.1.10", "off_cmd": "ps4-waker -d 192.168.1.10 standby", "state_cmd": "ps4-waker -d 192.168.1.10 search | grep -i '200 Ok'", "polling": true, "interval": 5, "timeout": 2000, "manufacturer": "Sony Corporation", "model": "CUH-1001A", "serial": "nope-nope-nope(real serial is on config)" } ] }