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

"apps" in config aren't showing up in Homebridge or Homekit #66

Open gradyhouston opened 4 years ago

gradyhouston commented 4 years ago

I added some PS4 titles in my config but they're not showing up anywhere.


            "platform": "cmdSwitch2",
            "name": "CMD Switch",
            "switches": [
                {
                    "name": "Playstation 4",
                    "on_cmd": "/usr/bin/ps4-waker -c /var/lib/homebridge/.ps4-wake.credentials.json",
                    "off_cmd": "/usr/bin/ps4-waker -c /var/lib/homebridge/.ps4-wake.credentials.json standby",
                    "state_cmd": "/usr/bin/ps4-waker -c /var/lib/homebridge/.ps4-wake.credentials.json search | grep -i '200 Ok'",
                    "polling": true,
                    "interval": 60,
                    "ip": "192.168.1.18",
                    "timeout": 30000,
                    "manufacturer": "Sony Corporation",
                    "model": "CUH-7215B",
                    "serial": "XXXXXXXXXX",
                    "apps": [
                        {
                            "id": "CUSA11456",
                            "name": "Ghost of Tsushima"
                        },
                        {
                            "id": "CUSA07408",
                            "name": "God of War"
                        },
                        {
                            "id": "CUSA15081",
                            "name": "Need for Speed"
                        },
                        {
                            "id": "CUSA16832",
                            "name": "Golf"
                        },
                        {
                            "id": "CUSA00552",
                            "name": "The Last of Us"
                        }
                    ]
                }
            ]
        }
codyc1515 commented 3 years ago

You’ve put the ps4-waker config into a command plug-in - it won’t work.