michaelarnauts / cec-mqtt-bridge

A HDMI-CEC to MQTT bridge for connecting HDMI-CEC-devices to your Home Automation system.
145 stars 48 forks source link

Hotplug doesnt detect CEC adapter #26

Open Andrew718 opened 5 years ago

Andrew718 commented 5 years ago

I have this working well on a raspberry pi zero w.

When the pi is connected to the HDMI port before being powered up, everything works well.

However, if HDMI is plugged in afterward the Pi has booted, the cec never initalises.

If I scan the bus using: echo scan | cec-client -s -d 1

The adapter opens, and all works as expected.

So I tried adding the scan line to my supervisord script. When it restarts (with no HDMI plugged in) the adapter opens, and initalises MQTT. But if you plug in HDMI cable, it nevers finds a new device on the bus unless rebooted or scanned again.

Is this an issue with cec-mqtt-bridge or raspberry pi?

Thank you