Palakis / esphome-native-hdmi-cec

HDMI-CEC implementation for ESPHome
Other
40 stars 11 forks source link

Unable to get the TV to turn on after power-cycling it #3

Closed iDVB closed 2 months ago

iDVB commented 6 months ago

I have this simple code working and using HomeAssistant to send in...

cec_destination = 0
cec_data = [0x04]

...and its working to get the tv to turn on, but only when the tv is in standby mode. I'd really like to be able to turn the tv on from complete power-cycle as well. I only wired up 2 of the 3 (3rd was said to be optional) wires suggested in your readme. Perhaps 3 might work if the TV knows a device is there?

services:
    - service: hdmi_cec_send
      variables:
        cec_destination: int
        cec_data: int[]
      then:
        - hdmi_cec.send:
            destination: !lambda 'return static_cast<unsigned char>(cec_destination);'
            data: !lambda 'std::vector<unsigned char> charVector; for (int i : cec_data) { charVector.push_back(static_cast<unsigned char>(i)); } return charVector;'

I can't believe I've been all over the place and can't seem to find a "programmatic solution to turn the tv on and off that is as guaranteed as the IR/RF remote. I was really hoping CEC would be the answer. đŸ˜¢

Minims commented 5 months ago

Same here. I need to power on / power off one time via IR, to be able to control via CEC the next time.

gekkie commented 4 months ago

Not going to work unfortunatly. When the TV is OFF OFF then only some systems are active. Looks like only IR is on.

ntzb commented 4 months ago

@Minims @iDVB did you try using 5V on pin 18?

Minims commented 4 months ago

@ntzb I have wired the 3 cables, GND, CEC & 5v. All is working fine.

ntzb commented 4 months ago

@Minims I want to make the pin 18 5V connection as well, but am afraid of over voltage to ruin the expensive HDMI ports (TV). my source is USB (but fast chargers can also output 9V/12V). how do you feed 5V "safely"? do you use 5V regulator?

Minims commented 4 months ago

@ntzb my current wiring is :

I have a regulator 5v > 3v3 for the ESP, but i use the USB 5v for pin 18. No issue since month on my 15 years old TV. The hdmi cable is connected on an HDMI switch. But for debug puprose it was connected directly to TV without issue too.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 7 days with no activity.