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

Not responding on Raspberry with ps4-waker #35

Closed TommyCardello closed 6 years ago

TommyCardello commented 6 years ago

Hello everyone,

I'm trying to use CMDSwitch2 with ps4-waker. I was able to setup both while Homebridge running on Macbook. Works very good.

But I need to move it to a Homebridge on Raspberry Pi. After installing ps4-waker I'm able to turn on/off Playstation manually typing "ps4-waker" or "ps4-waker standby. But it doesn't work with Homebridge + CMDSwitch2. Not responding. But no errors.

After setup of both plugins, I can see the new device in the Home app on iOS. But pressing Playstation button does nothing.

Do anyone have the same issue?

Everything is updated. Node -v v8.9.3 NPM -v 5.5.1

Totally the same setup works on Macbook but not on Raspberry Pi 3 (last raspbian stretch OS)

screen shot 2017-12-22 at 6 45 42 pm screen shot 2017-12-22 at 6 45 53 pm
TommyCardello commented 6 years ago

Okay, I fixed it. Here is a solution which helped me.

I have added sudo to "on_cmd" and "off_cmd". So I have "on_cmd":"sudo ps4-waker".

I have deleted credentials: Run sudo rm /root/.ps4-wake.credentials.json

then setup ps4-waker as usual

The gentleman with the one before the last comment has a description of setting it up again: https://github.com/dhleong/ps4-waker/issues/65