Open CyberMrProper opened 1 year ago
var exec = require('child_process').exec;
it could be something like:
else if (nextState === this.Characteristic.Active.ACTIVE && this.userConfig.customTurnOnCommand){ exec(this.userConfig.customTurnOnCommand); await sleep(1000) await this.updateTVstatus(nextState) }
@AntonioMeireles thoughts?
i was just thinking the same thing, would be a cool feature.
I can turn on the tv indirectly via a URL. (Enigma2 STB -> turns TV ON)
I have an old Panasonic TV that does not have wake on lan functionality. Once the TV is turned on (with the physical remote), the plugin works flawless. Given that I have an IR blaster, it would be great if this plugin could include a fallback mechanism to execute a command line script if "turns on" fails.
[Panasonic TV] (setPowerStatus)/-> ON - unable to power cycle TV - unpowered ?