grayspark
(Gray Spark)
March 31, 2024, 11:15am
1
Hi everyone, noob question here I guess, but I’ve tried looking around for an answer without any luck, so here it goes.
I bought a Zigbee coordinater with Texas Instrument CC2652P. It installed successfully on HA, and I can add devices to HA through it. So far so good.
I added two devices (sorry it seems I can only embed 1 image per post, so I’m being creative with links here):
And here’s the Zigbee Coordinator
I’ve tried to check with event listener, using * (I assume this means I’m listening to all events fired), but nothing. I pressed the buttons repeatedly, nothing. I did test my other devices (that used cloud / wifi connection) and they worked just fine.
Did I miss something here? I’m assuming that my initial setup might be incorrect somehow, but I have a hard time figuring out what’s wrong here.
Thanks!
grayspark
(Gray Spark)
March 31, 2024, 11:15am
2
The visualization looks okay though:
And here’s the link to the products:
IKEA Tradfri smart button
PIR
francisp
(Francis)
March 31, 2024, 11:29am
3
never tried that. Try to listen to zha_event
grayspark
(Gray Spark)
March 31, 2024, 1:52pm
4
I did, nothing comes up for zha_event
grayspark
(Gray Spark)
March 31, 2024, 2:17pm
7
I saw there’s a reason you asked about extension cable, let me try using one and take note of USB 3.0 or 2.1 that I’m using.
This is the thread that I saw earlier: WTH USB Extension Cable
grayspark
(Gray Spark)
April 2, 2024, 11:58am
8
Okay, update:
I bought a USB 2.0 with 1.5 meters long and put the zigbee coordinator there, restarted HA, and it doesn’t seem there’s any change at all
I tried to listen to * (all) events (after restarting and using the extension), the events fired was:
battery
RSSI (which I believe is related to signal strength)
identify
LQI
Still pretty stumped here. Any idea what should I do now?
Thanks
Here’s the output of everything related
event_type: state_changed
data:
entity_id: sensor.ikea_ts1_battery
old_state:
entity_id: sensor.ikea_ts1_battery
state: unavailable
attributes:
state_class: measurement
unit_of_measurement: "%"
device_class: battery
friendly_name: IKEA TS1 Battery
last_changed: "2024-04-02T11:27:26.254706+00:00"
last_updated: "2024-04-02T11:27:26.254706+00:00"
context:
id: 01HTF90RHEHWPJYPMVVTXXGFQA
parent_id: null
user_id: null
new_state:
entity_id: sensor.ikea_ts1_battery
state: "87"
attributes:
state_class: measurement
battery_size: CR2032
battery_quantity: 1
battery_voltage: 2.8
unit_of_measurement: "%"
device_class: battery
friendly_name: IKEA TS1 Battery
last_changed: "2024-04-02T11:39:22.922552+00:00"
last_updated: "2024-04-02T11:39:22.922552+00:00"
context:
id: 01HTF9PMDA9BX9NK7HCNN80PG7
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-04-02T11:39:22.922552+00:00"
context:
id: 01HTF9PMDA9BX9NK7HCNN80PG7
parent_id: null
user_id: null
event_type: state_changed
data:
entity_id: sensor.ikea_ts1_battery
old_state:
entity_id: sensor.ikea_ts1_battery
state: "87"
attributes:
state_class: measurement
battery_size: CR2032
battery_quantity: 1
battery_voltage: 2.8
unit_of_measurement: "%"
device_class: battery
friendly_name: IKEA TS1 Battery
last_changed: "2024-04-02T11:39:22.922552+00:00"
last_updated: "2024-04-02T11:39:22.922552+00:00"
context:
id: 01HTF9PMDA9BX9NK7HCNN80PG7
parent_id: null
user_id: null
new_state:
entity_id: sensor.ikea_ts1_battery
state: "74"
attributes:
state_class: measurement
battery_size: CR2032
battery_quantity: 1
battery_voltage: 2.8
unit_of_measurement: "%"
device_class: battery
friendly_name: IKEA TS1 Battery
last_changed: "2024-04-02T11:39:22.923232+00:00"
last_updated: "2024-04-02T11:39:22.923232+00:00"
context:
id: 01HTF9PMDB9N1YQ3FYHVASNC0B
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-04-02T11:39:22.923232+00:00"
context:
id: 01HTF9PMDB9N1YQ3FYHVASNC0B
parent_id: null
user_id: null
event_type: state_changed
data:
entity_id: button.ikea_ts1_identify
old_state:
entity_id: button.ikea_ts1_identify
state: unavailable
attributes:
device_class: update
friendly_name: IKEA TS1 Identify
last_changed: "2024-04-02T11:27:26.253974+00:00"
last_updated: "2024-04-02T11:27:26.253974+00:00"
context:
id: 01HTF90RHDMG3WEKFPTGX65B0T
parent_id: null
user_id: null
new_state:
entity_id: button.ikea_ts1_identify
state: unknown
attributes:
device_class: update
friendly_name: IKEA TS1 Identify
last_changed: "2024-04-02T11:39:22.931241+00:00"
last_updated: "2024-04-02T11:39:22.931241+00:00"
context:
id: 01HTF9PMDK928KZ1VXSGN48RJ2
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-04-02T11:39:22.931241+00:00"
context:
id: 01HTF9PMDK928KZ1VXSGN48RJ2
parent_id: null
user_id: null
event_type: state_changed
data:
entity_id: sensor.ikea_of_sweden_tradfri_shortcut_button_rssi
old_state:
entity_id: sensor.ikea_of_sweden_tradfri_shortcut_button_rssi
state: unavailable
attributes:
state_class: measurement
unit_of_measurement: dBm
device_class: signal_strength
friendly_name: IKEA TS1 RSSI
last_changed: "2024-04-02T11:27:26.255332+00:00"
last_updated: "2024-04-02T11:27:26.255332+00:00"
context:
id: 01HTF90RHFKP9B2A0AKDJJWANP
parent_id: null
user_id: null
new_state:
entity_id: sensor.ikea_of_sweden_tradfri_shortcut_button_rssi
state: unknown
attributes:
state_class: measurement
unit_of_measurement: dBm
device_class: signal_strength
friendly_name: IKEA TS1 RSSI
last_changed: "2024-04-02T11:39:22.932017+00:00"
last_updated: "2024-04-02T11:39:22.932017+00:00"
context:
id: 01HTF9PMDM1FP02GHRWGNHKP87
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-04-02T11:39:22.932017+00:00"
context:
id: 01HTF9PMDM1FP02GHRWGNHKP87
parent_id: null
user_id: null
event_type: state_changed
data:
entity_id: sensor.ikea_of_sweden_tradfri_shortcut_button_lqi
old_state:
entity_id: sensor.ikea_of_sweden_tradfri_shortcut_button_lqi
state: unavailable
attributes:
state_class: measurement
friendly_name: IKEA TS1 LQI
last_changed: "2024-04-02T11:27:26.255914+00:00"
last_updated: "2024-04-02T11:27:26.255914+00:00"
context:
id: 01HTF90RHFJY8B196JFM1RYSB3
parent_id: null
user_id: null
new_state:
entity_id: sensor.ikea_of_sweden_tradfri_shortcut_button_lqi
state: "109"
attributes:
state_class: measurement
friendly_name: IKEA TS1 LQI
last_changed: "2024-04-02T11:39:22.932392+00:00"
last_updated: "2024-04-02T11:39:22.932392+00:00"
context:
id: 01HTF9PMDMKPJS1XS067WV4KAF
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-04-02T11:39:22.932392+00:00"
context:
id: 01HTF9PMDMKPJS1XS067WV4KAF
parent_id: null
user_id: null
francisp
(Francis)
April 2, 2024, 1:25pm
9
Now that you have an extension cable, try to pair them again.
grayspark
(Gray Spark)
April 3, 2024, 2:42am
10
Hey thanks Francis, that actually helps with the Ikea switch.
So here’s the update for those who’s been following:
I bought a Zigbee coordinator with Texas Instrument CC2652P
Installed on ZHA (directly to the machine I’m using – a laptop installed with Debian)
Paired IKEA Tradfri Shortcut Button and Tuya PIR sensor
Both paired successfully, but failed to listen to any events
Bought an USB extension, USB 2.0 with 1.5 meters in length (that’s 590 inches)
Removed and re-pair IKEA Tradfri Shortcut Button
Restarted HA
Success – the shortcut button works well with automation and Blueprint
Re-pair Tuya PIR Sensor
Restarted HA
No-SUCCESS
Did I miss anything here?
The button works okay though. Even though the stats (is it called quirks?) doesn’t show correctly, and the battery didn’t pair correctly as well.
francisp
(Francis)
April 3, 2024, 3:22am
11
You might need a custom quirk
If your new Zigbee device is not showing all expected entities (attributes) in the ZHA integration even after re-pairing it then chances are it will need custom ZHA Device Handlers (also known as “zha-quirk”) for that specific device, but even if someone has already written a such custom it can take a sometimes long time before that specific quirk is merged into the mainline ZHA Device Handlers (“zha-quirks”) repository for automatic inclusion in Home Assistant releases, so until then you will n…
grayspark
(Gray Spark)
April 15, 2024, 11:31am
12
Thanks Francis, tested this and still not sure where I should go. At this point I particularly gave up with ZHA, and will be testing Z2M after this to see if it works better. On one hand, ZHA should be easier (which is why I picked this one earlier), but on the other hand, most of my devices are Tuya (as they are cheap here).
thony
(Anthony Leslie Hill)
August 21, 2024, 3:03pm
13
Bumping this thread to ask what the info from the entity ID exposed when you use ZHA with this dongle tells me?
( ie. sensor.texas_instruments_cc2652 )
It’s an integer that seems to keep counting up after each HA reset so I’m guessing it’s somes sort of message count? Good messages or bad messages or some other type of scan? Google was no help here.