Open saschafiedler opened 1 year ago
This is indicating that your config file is incorrect, can you share it ?
Sure:
{
"bridge": {
"name": "Homebridge",
"username": "xxx",
"port": xxx,
"pin": "xxx",
"advertiser": "avahi"
},
"accessories": [
{...}
{
"accessory": "cmd-television",
"name": "Apple TV",
"oncmd": "atvremote --id xx:xx:xx:xx:xx:xx (Wifi mac address) --airplay-credentials `cat ~/.homebridge/atv_airplay.cred` --companion-credentials `cat ~/.homebridge/atv_companion.cred` turn_on",
"offcmd": "atvremote --id xx:xx:xx:xx:xx:xx (Wifi mac address) --airplay-credentials `cat ~/.homebridge/atv_airplay.cred` --companion-credentials `cat ~/.homebridge/atv_companion.cred` turn_off",
"pausecmd": "atvremote --id xx:xx:xx:xx:xx:xx (Wifi mac address) --airplay-credentials `cat ~/.homebridge/atv_airplay.cred` --companion-credentials `cat ~/.homebridge/atv_companion.cred` pause",
"playcmd": "atvremote --id xx:xx:xx:xx:xx:xx (Wifi mac address) --airplay-credentials `cat ~/.homebridge/atv_airplay.cred` --companion-credentials `cat ~/.homebridge/atv_companion.cred` play",
"powerstatecmd": "atvremote --id xx:xx:xx:xx:xx:xx (Wifi mac address) --airplay-credentials `cat ~/.homebridge/atv_airplay.cred` --companion-credentials `cat ~/.homebridge/atv_companion.cred` power_state"
}
],
"platforms": [
{...}
]
}
Do you have this text in your config section ? (Wifi mac address)
Also I presume your running this on a Raspberry PI, and what version of homebridge are you running ?
Do you have this text in your config section ?
(Wifi mac address)
No. Just to clarify, that I used the in my case correct MAC address.
Also I presume you’re running this on a Raspberry PI, and what version of homebridge are you running ?
Yes, I do. Raspi 4 with a current version of Raspbian. I’m running 1.5.0 of Homebridge.
I have been trying a couple of different things in an attempt to recreate your issue, but have not been successful.
My only other thought, is re-install the plugin again
Did you use the command sudo npm i -g https://github.com/NorthernMan54/homebridge-cmd-television
?
I have successfully installed and configured the plugin according to the instructions, but I get the following error message when using it:
Is the problem known and where is my error?
Do I understand the sample configuration file correctly, that I swap the MAC address with the one of my Apple TV?