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

Getting error: no tty present and no askpass program specified #68

Closed SzilagyiR closed 3 years ago

SzilagyiR commented 3 years ago

Hi!

When I trying to turn ON or OFF PS4, I getting this error:

sudo: no tty present and no askpass program specified

Please help me!

SzilagyiR commented 3 years ago

The solution:

Move the creditials:

"on_cmd": "ps4-waker --skip-login -c /var/lib/homebridge/.ps4-wake.credentials.json", "off_cmd": "ps4-waker --pass XXXX -c /var/lib/homebridge/.ps4-wake.credentials.json standby", "state_cmd": "ps4-waker -c /var/lib/homebridge/.ps4-wake.credentials.json search | grep -i '200 Ok'",