hello
I've unmanaged TV and I've been asked to turn them off nights and vacations.
When I use the scripts below, I have nothing, even if the TV is well set to CEC and can read the player connected.
function cecDisplayOn() { console.log("### cecDisplayOn ###"); var cec_control = new BSCECTransmitter(); var buffer = new Uint8Array(2); buffer[ 0 ] = 0x40; buffer[ 1 ] = 0x0D; cec_control.SendRawMessage(buffer); } function cecDisplayOff() { console.log("### cecDisplayOff ###"); var cec_control = new BSCECTransmitter(); var buffer = new Uint8Array(2); buffer[ 0 ] = 0x40; buffer[ 1 ] = 0x36; cec_control.SendRawMessage(buffer); }
I created a task for the 'Turn on' and off and wrote only the part.
No error no thing happens. Any idea ?