Hi,
I am just starting using Zigbee in HA, so please bear we me…, and sorry for the rather long post.
The zigbee devices that I connected to HA up to now are:
-
As Coordinator: ZBDongle-E - Sonoff Zigbee 3.0 EFR32MG21 Dongle Plus-E
-
As a bulb: LED1836G9 - IKEA Tradfri LED bulb E26 806 lumen, dimmable, warm white
-
As a dimmer switch: E1743 - IKEA Tradfri ON/OFF Switch
The bulb and switch have been in use for several years as stand-alone setup (directly connected together), and that was working fine: both on/of and the dimmer function were working perfectly.
I already bought some other Zigbee devices to add them later (some IKEA E1746 Tradfri Signal Repeaters and some Sonoff SZNB-03 PIR sensors), but as a first test I am now trying to get the same functionality with the IKEA bulb and switch via ZHA.
This are the steps I followed up to now:
- Installed the ZHA integration
- Installed the Zigbee2MQTT add-on. However, I then found out that I cannot use both ZHA and Zigbee2MQTT together, so I disabled Zigbee2MQTT again.
- Configured the ZHA OTA firmware update in configuration.yaml for IKEA devices.
- Connected the coordinator to an USB port of my HA server (HA Supervised on a x86 system) via a high quality 3 meter USB extension cable. The coordinator was immediately successfully auto-configured by ZHA.
- Paired the bulb successfully with the coordinator. I can control the bulb including dimming function via the ZHA GUI. The bulb firmware was updated immediately to version 0x23093631
- Paired the switch with the coordinator. This is where the troubles begun.
The switch was recognized and initialized as “IKEA of Sweden TRADFRI on/off switch”, but was shown in ZHA as an “unk_manufacturer unk_model” device:
I then found out that ZHA was in the process of updating the firmware for the switch as well: I could see this in the diagnostics file and in the real-time log while searching for Zigbee devices. It was show as “OTA upgrade progress: “ with a percentage:
This upgrading took more than an hour, but when it was finished the switch was still shown as “unk_manufacturer unk_model”, even after a full restart of HA. There were only four Diagnostic entities for the device shown: “Battery” and “Identify” enabled, and “LQI” and “RSSI” disabled. So there were no Controls and Configuration entities. The firmware version was now shown as 0x23079631:
So then I removed the switch device from ZHA, and paired it again.
After that the switch was configured in ZHA as “IKEA of Sweden TRADFRI on/off switch” device, but I still saw only the same four entities, and nothing to really use the switch as intended (on/off and dimming).
The battery status was shown as 21%, so I then replaced the battery with a new one, but the status stayed at 21 % for a long time.
So I removed the switch device again, and re-paired it.
However, it then showed up as “unk_manufacturer unk_model” device again, with a battery status of 74%, but with still the same four Diagnostic entities, and still no Controls or Configuration entities.
After a long time the device name has been changed again to the presumably correct name “IKEA of Sweden TRADFRI on/off switch”, but unfortunately I still saw only the four Diagnostic entities.
And this morning I found out that the switch had become “Unavailable” in ZHA since late last night, and pressing the buttons on the switch did not make it appear again:
I then removed the battery from the switch to check it (it was still 3 Volt, so OK) and re-installed it, after which the switch re-appeared in ZHA, but still with only the four Diagnostic entities, and now a battery status of 255 % ??? And pressing any button on the switch does not have any effect in ZHA or HA:
Searching the HA forums I then found out that a Blueprint exists specifically for the E1743 switch. So I installed this blueprint, and linked it to both the bulb and switch. However, this does not work either, and I get this error message “Error: UndefinedError: ‘dict object’ has no attribute ‘event’”:
So I am out of ideas now, and my questions are now:
- How should the E1743 switch show up in ZHA, and with what functionality?
- Did I miss something in the set-up?
- How can I use this switch with ZHA in HA?
- What is the Diagnostic “Identify” button in ZHA meant for?
- Will it be better to switch from ZHA to Zigbee2MQTT?