homebridge-cmd-television
v1.0.3
Published
Control youre tv with commands.
Downloads
7
Readme
Homebridge television command plugin
Installation
- install homebridge
- install my plugin using: sudo npm i -g homebridge-cmd-television
- configure accesory (See configuration sample) Thats it! Now when you turn the television on or switch the input to another source it will run the command set in the config.
Configuration
Configuration sample:
"accessories": [{
{
"accessory": "cmd-television",
"name": "Televison",
"oncmd": "bash tvon.sh", <- this is the command that gets executed by linux when you turn the tv on with you're phone.
"offcmd": "bash tvoff.sh", <- this is the command that gets executed by linux when you turn the tv on with you're phone.
"input1cmd": "bash tvhdmi1.sh", <- this is the command that gets executed by linux when you switch the source with you're phone.
"input2cmd": "bash tvhdmi2.sh" <- this is the command that gets executed by linux when you switch the source with you're phone.
}
]