Connecting New Devices to ZHA with CC2652P

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!

The visualization looks okay though:

And here’s the link to the products:
IKEA Tradfri smart button

PIR

never tried that. Try to listen to zha_event

I did, nothing comes up for zha_event

2 questions:

  1. is your CC2652 connected directly in the computer, or do you use an USB extension cable ?
  2. since you only have 2 end-devices, how far are they from the coordinator ?

Thanks Francis,

  1. It’s connected directly to the computer, no extension cable
  2. I’m currently testing with sensors, and they are pretty close by (at least I’m sure they are within range) – like around 3 meters apart, but in another room

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

Okay, update:

  1. 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
  2. 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

Now that you have an extension cable, try to pair them again.

Hey thanks Francis, that actually helps with the Ikea switch.

So here’s the update for those who’s been following:

  1. I bought a Zigbee coordinator with Texas Instrument CC2652P
  2. Installed on ZHA (directly to the machine I’m using – a laptop installed with Debian)
  3. Paired IKEA Tradfri Shortcut Button and Tuya PIR sensor
  4. Both paired successfully, but failed to listen to any events
  5. Bought an USB extension, USB 2.0 with 1.5 meters in length (that’s 590 inches)
  6. Removed and re-pair IKEA Tradfri Shortcut Button
  7. Restarted HA
  8. Success – the shortcut button works well with automation and Blueprint
  9. Re-pair Tuya PIR Sensor
  10. Restarted HA
  11. 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.

You might need a custom quirk

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).

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.