Closed DCSBL closed 1 year ago
Where does one find the Integration? The CEC Scanner add-on isn't working for me either.
You can add it in your configuration.yaml
: https://www.home-assistant.io/integrations/hdmi_cec/#configuration-example
2022-01-18 17:25:13 WARNING (SyncWorker_0) [pycec] Not initialized. Waiting for init.
That's with the following YAML:
hdmi_cec:
devices:
TV: 0.0.0.0
HABlue: 1.0.0.0
Update 1: the cable was unplugged. Problem in front of, not in, computer. Now working for me too, albeit partially as I am still mastering how exactly HDMI-CEC operates. Cheers @agners & all!
Update 2: (hopefully discoverable to those learning like me):
Developer Tools ¦ Services ¦ HDMI-CEC
lists what can be done.Developer Tools ¦ States ¦ switch.hdmi_[0-9¦a-e]
lists the HDMI-CEC devicesIn my case Philips TV 0.0.0.0, Pioneer Receiver 1.0.0.0 & Google TV 1.1.0.0. Notable that HA Blue /ODROID-N2+ doesn't feature. Thus my YAML now reads:
hdmi_cec:
devices:
Philips: 0.0.0.0
Pioneer: 1.0.0.0
Google: 1.1.0.0
I can now:
Developer Tools ¦ Services ¦ HDMI-CEC: Power On
,Developer Tools ¦ Services ¦ HDMI-CEC: Standby
,Developer Tools ¦ Services ¦ HDMI-CEC: Select device
(although this proves of limited value, see below), andDeveloper Tools ¦ Services ¦ HDMI-CEC: Volume [Down [amount]¦ Mute [Off ¦ On ¦ Toggle] ¦ Up [amount]]
(although the volume change amount doesn't seem to change what get's done).I'd still like to understand:
HDMI-CEC: Send Command
parameters, andSelect device
is limited because so far I can only select the TV, Receiver or Google TV, not what each has selected to play. Thus, for example, if I am watching TV and I choose Google TV via Select device
, then it does bring Google TV to the fore. Then, if I Select device 0.0.0.0
to try to go back to watching TV, Google TV continues to play as that is the source that remains selected on the TV. Not a limitation of HDMI-CEC, but a challenge to work around.
Afraid it looks like this bug is back. Had to rebuild my Home Assistant on HA Blue (ODroid 2+) after a failed update.
The log messages I got to know so well are there in all their glory.
Not initialized. Waiting for init. 21:53:43 – (WARNING) /usr/local/lib/python3.10/site-packages/pycec/network.py - message first occurred at 21:35:03 and shows up 1118 times failed to open a connection to the CEC adapter 21:53:15 – (ERROR) /usr/local/lib/python3.10/site-packages/pycec/cec.py - message first occurred at 21:35:05 and shows up 10 times Error doing job: Exception in callback CecAdapter.standby_devices() 21:35:18 – (ERROR) /usr/src/homeassistant/homeassistant/runner.py
I have the integration enabled by the entired in configuraiton.yaml as before. I have tried with and without CEC Scanner enabled. I have been back through all of the issues and can't find what setting I might have changed.
What HAOS version are you using?
Anyone else actively using HDMI CEC on ODROID-N2?
I'm using HDMI CEC it on the Odroid-N2 (HA Blue), without any issues. I had CEC issues with SU 2022.11.0, but that related to: https://github.com/home-assistant/supervisor/issues/4004, and was fixed once I moved to SU 2022.11.2.
Home Assistant 2022.11.4
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest
Thanks @inytar. Upgrading SU to 2022.11.2 solved the problem for me too. And thank you @agners for reacting so promptly.
This can be closed again.
Hardware Environment
Home Assistant OS release:
After starting 'CEC Scanner' add-on:
Journal logs:
Kernel logs:
Kernel logs
``` [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.9.16 (builder@3e21b14cdb2d) (aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot -ge648285f) 9.3.0, GNU ld (GNU Binutils) 2.34) #1 SMP PREEMPT Fri Jan 1 15:05:13 UTC 2021 [ 0.000000] Machine model: Hardkernel ODROID-N2Plus [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000e0c00000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000f4e5afff] [ 0.000000] NUMA: NODE_DATA [mem 0xf465e100-0xf465ffff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000f4e5afff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000004ffffff] [ 0.000000] node 0: [mem 0x0000000005300000-0x00000000f4e5afff] [ 0.000000] Zeroed struct page in unavailable ranges: 421 pages [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000f4e5afff] [ 0.000000] On node 0 totalpages: 1002331 [ 0.000000] DMA zone: 4096 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 261376 pages, LIFO batch:63 [ 0.000000] DMA32 zone: 11578 pages used for memmap [ 0.000000] DMA32 zone: 740955 pages, LIFO batch:63 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.1 [ 0.000000] percpu: Embedded 23 pages/cpu s53912 r8192 d32104 u94208 [ 0.000000] pcpu-alloc: s53912 r8192 d32104 u94208 alloc=23*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 986657 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor systemd.machine_id=b31decd78a21418f8e682af4fabe190a cgroup_enable=memory fsck.repair=yes root=PARTUUID=48617373-08 rootfstype=squashfs ro rootwait rauc.slot=B console=tty0 console=ttyAML0,115200n8 [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x3bfff000-0x3ffff000] (64MB) [ 0.000000] Memory: 3578968K/4009324K available (13440K kernel code, 990K rwdata, 4160K rodata, 2560K init, 463K bss, 168212K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] irq_meson_gpio: 100 to 8 gpio interrupt mux initialized [ 0.000000] random: get_random_bytes called from start_kernel+0x32c/0x4ec with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000170] Console: colour dummy device 80x25 [ 0.000523] printk: console [tty0] enabled [ 0.000609] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000) [ 0.000629] pid_max: default: 32768 minimum: 301 [ 0.000712] LSM: Security Framework initializing [ 0.000795] AppArmor: AppArmor initialized [ 0.000850] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.000878] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.002581] rcu: Hierarchical SRCU implementation. [ 0.004318] EFI services will not be available. [ 0.004726] smp: Bringing up secondary CPUs ... [ 0.005355] Detected VIPT I-cache on CPU1 [ 0.005406] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.006551] CPU features: detected: ARM erratum 858921 [ 0.006559] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware [ 0.006567] Detected VIPT I-cache on CPU2 [ 0.006590] arch_timer: Enabling local workaround for ARM erratum 858921 [ 0.006605] arch_timer: CPU2: Trapping CNTVCT access [ 0.006612] CPU2: Booted secondary processor 0x0000000100 [0x410fd092] [ 0.007226] Detected VIPT I-cache on CPU3 [ 0.007242] arch_timer: Enabling local workaround for ARM erratum 858921 [ 0.007248] arch_timer: CPU3: Trapping CNTVCT access [ 0.007253] CPU3: Booted secondary processor 0x0000000101 [0x410fd092] [ 0.007822] Detected VIPT I-cache on CPU4 [ 0.007837] arch_timer: Enabling local workaround for ARM erratum 858921 [ 0.007844] arch_timer: CPU4: Trapping CNTVCT access [ 0.007849] CPU4: Booted secondary processor 0x0000000102 [0x410fd092] [ 0.008478] Detected VIPT I-cache on CPU5 [ 0.008493] arch_timer: Enabling local workaround for ARM erratum 858921 [ 0.008499] arch_timer: CPU5: Trapping CNTVCT access [ 0.008505] CPU5: Booted secondary processor 0x0000000103 [0x410fd092] [ 0.008575] smp: Brought up 1 node, 6 CPUs [ 0.008722] SMP: Total of 6 processors activated. [ 0.008735] CPU features: detected: 32-bit EL0 Support [ 0.008746] CPU features: detected: CRC32 instructions [ 0.008757] CPU features: detected: 32-bit EL1 Support [ 0.018991] CPU: All CPU(s) started at EL2 [ 0.019055] alternatives: patching kernel code [ 0.020797] devtmpfs: initialized [ 0.026440] Registered cp15_barrier emulation handler [ 0.026464] Registered setend emulation handler [ 0.026474] KASLR disabled due to lack of seed [ 0.026716] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.026738] futex hash table entries: 2048 (order: 5, 131072 bytes, linear) [ 0.030827] pinctrl core: initialized pinctrl subsystem [ 0.031152] DMI not present or invalid. [ 0.031483] NET: Registered protocol family 16 [ 0.032834] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations [ 0.033015] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.033252] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.033270] audit: initializing netlink subsys (disabled) [ 0.033366] audit: type=2000 audit(0.032:1): state=initialized audit_enabled=0 res=1 [ 0.033628] thermal_sys: Registered thermal governor 'step_wise' [ 0.033851] cpuidle: using governor menu [ 0.034146] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.034239] ASID allocator initialised with 65536 entries [ 0.035069] Serial: AMBA PL011 UART driver [ 0.061050] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.061068] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.061078] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.061086] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.061799] cryptd: max_cpu_qlen set to 1000 [ 0.063362] ACPI: Interpreter disabled. [ 0.064042] 5V: supplied by 12V [ 0.064689] VDDAO_3V3: supplied by 12V [ 0.064968] iommu: Default domain type: Translated [ 0.065077] vgaarb: loaded [ 0.065281] SCSI subsystem initialized [ 0.065379] libata version 3.00 loaded. [ 0.065505] usbcore: registered new interface driver usbfs [ 0.065535] usbcore: registered new interface driver hub [ 0.065583] usbcore: registered new device driver usb [ 0.065793] mc: Linux media interface: v0.10 [ 0.065812] videodev: Linux video capture interface: v2.00 [ 0.065836] pps_core: LinuxPPS API ver. 1 registered [ 0.065843] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo GiomettiDescription of problem:
No HDMI-CEC functions are working. I have tried the CEC Scanner add-on and the HDMI-CEC integration.
This issue is reported to the add-on repository (https://github.com/home-assistant/addons/issues/1771), but maybe it it related to the OS. To summarize: After starting the CEC Scanner add-on, it immediately stops and has the following in the log file:
I can also see this in the Home Assistant log when I've added the
hdmi_cec
integration toconfiguration.yaml
, and then calling thehdmi_cec.power_on
service:I have:
Welcome to Home Assistant(\n) Homeassistant login: _
)