Zigbee2mqtt: getting rid of your proprietary Zigbee bridges (Xiaomi, Hue, TRADFRI)

I am having a couple of problems I hope someone can point me through…

The first is most (but not all) of my battery-powered devices are being reported as mainline devices. This is messing up availability scans and marking battery devices offline.

The second issue is if I try to enable rtscts Z2M fails to find my adaptor. I had to enable this via the dip switch on the adaptor or my Lutron Aurora dimmers wouldn’t send events. Everything seems to work properly even with it not being configured in Z2M, but I’d rather have it set up correctly.

below is my config, and logs of the rtscts crash

data_path: /config/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  user:  user
  password: password
  version: 5
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_3230bcb4d13aec11a7449c957a0af07f-if00-port0
advanced:
  log_level: warn
  pan_id: 6754
  channel: 11
  network_key:
  -network hey 
  availability_blocklist: []
  availability_passlist: []
  rtscts: true
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}
availability: false
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[08:46:40] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[08:46:42] INFO: MQTT available, fetching server detail ...
[08:46:42] INFO: MQTT server settings not configured, trying to auto-discovering ...
[08:46:43] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[08:46:43] INFO: Previous config file found, checking backup
[08:46:43] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[08:46:43] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[08:46:44] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:error 2022-02-02 08:47:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-02-02 08:47:12: Failed to start zigbee
Zigbee2MQTT:error 2022-02-02 08:47:12: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-02-02 08:47:12: Exiting...
Zigbee2MQTT:error 2022-02-02 08:47:12: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:101:5)
[08:47:42] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js

Have you found a way to hook up your somfy to zigbee2mqtt?

I have converted over all my zigbee lights to run off of a zigbee coordinator for some time now. Hue bridge is completely shutdown. I am experiencing 2 annoying things.

  1. The transition to turn on/off the lights are abrupt. When running with hue bridge it was a smooth on/off motion.

  2. The lights will not turn on from previous state. Example. If the lights were turned off at 10% dim. The next day or later when I turn it back on, it seems it is not on, but I can see from HA gui that is it on, but the light itself is not physically on. The only way is to use the slider in gui to turn it to 100%.

When on the hue bridge, I didn’t see any issue with these. I am tempted to revert back to the hue bridge, but kinda burnt out of having to mess with Ha on a daily basis.

OK I am struggling a bit. I have tried to add an Ikea Praktlysing blind to my zigbee2mqtt system and it is showing as unsupported (this goes for the remote, the repeater and the blind. Even though it says it is supported in herdsman I cant figure out how to get it to identify it. I am using Zigbee2MQTT Version 1.32.1-1 and have tried several times and full resets on the Ikea devices and still to no avail.!

According to zigbee-herdsman-converters it is supported but having read through a lot of this forum it appears that the herdsman convertors are already installed with the main zigbee2mqtt but I just am not able to see the files/folders. Am I missing something.

How do I get these ikea products recognised (i.e. shown as supported and exposing items?)

Running on a rasp pi 4
Home Assistant 2023.7.2
Supervisor 2023.07.1
Operating System 10.3
Frontend 20230705.1 - latest

TIA
lcsneil

What model number do you have? And what firmware? What does your log say?

I presume by model number you mean of blind?
It is an Ikea Praktlysing E2102, Type E1746 Tradfri Repeater & Trafri Remote E1766.

Not sure how I find the firmware versions.

Logs when I try to pair the Repeater,

error 2023-07-15 15:45:06: Failed to interview '0xb4e3f9fffe52a4f1', device has not successfully been paired
info  2023-07-15 15:45:06: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xb4e3f9fffe52a4f1","ieee_address":"0xb4e3f9fffe52a4f1","status":"failed"},"type":"device_interview"}'
info  2023-07-15 15:45:06: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_failed","meta":{"friendly_name":"0xb4e3f9fffe52a4f1"},"type":"pairing"}'

So does this mean I have bigger issues as it failed the interview and hence didnt pair even though it is showing up online in the devices list but just unsupported?

lcsneil

Often devices don’t finish an interview, usually repeating the join does it, often bringing the device closer to the co-ordinator.

Also, is the co-ordinator a good distance from the rpi via an extension usb cable?

See this Improve network range and stability | Zigbee2MQTT

The device is sitting adjacent to the co-ordinator which is on a 2m USB lead away from the rpi4. In fact now despite the red flashing lights on the remote it wont pair at all now!

I am wondering if the remote is actually faulty but still doesnt explain the repeater showing as unsupported.

OK so I have reset all of the blinds, remotes, repeaters and have proven that as a standalone until all of the IKEA devices are working and the remote controls the blind. I then started to follow the advice here It starts to try to pair and it still shows up as unsupported. The logs showed just as they did in my post above.

The Co-ordinator was sitting right next to the Ikea repeater on a 1.5m lead / distance from the raspberry pi. The repeater shows as online still on the zigbee2MQTT devices page but unsupported. Any ideas what else I can try as I am tearing my hair out.

TIA
lcsneil

So I don’t think you have said what co-ordinator you have, and what firmware it has.

Is this the correct info?

ID_USB_MODEL: Sonoff_Zigbee_3.0_USB_Dongle_Plus
ID_USB_MODEL_ENC: Sonoff\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus
ID_USB_MODEL_ID: ea60
ID_USB_REVISION: '0100'

lcsneil

There are, sadly, two different “Plus” dongles - the P and the E.

1 Like

And that doesn’t tell us the firmware.

So it says on the physical unit Model: ZBDongle-P

How do I interrogate it to find the firmware?

lcsneil

type or paste code here

OK firmware Coordinator revision 20210708
So anyone any ideas where I am going wrong or how to pair the blind/remote and repeater?

TIA
lcsneil

Hi all,

With the IKEA E2201 Rodret, it has the ability to send a simulated_brightness command by holding down the on button.

How do I get the IKEA E2201 the brightness updates (action_brightness_delta) in an automation (not brightness_move_up as that is a one time event, but the action_brightness_delta commands)?


Info <small>2023-08-10 11:41:43</small>`MQTT publish: topic 'zigbee2mqtt/Master Bedroom Fan Remote/action', payload 'brightness_move_up'`

Info <small>2023-08-10 11:41:43</small>`MQTT publish: topic 'zigbee2mqtt/Master Bedroom Fan Remote', payload '{"action_brightness_delta":20,"battery":100,"brightness":155,"last_seen":"2023-08-10T15:41:43.929Z","linkquality":131,"update":{"installed_version":16777287,"latest_version":16777287,"state":"idle"},"update_available":null}'

Try 20230507

1 Like

:warning: Product announcement :warning:

Very happy to announce our new product - UZG-01 (Universal Zigbee Gateway)

Visit our product page for an in-depth exploration of the UZG-01 and its remarkable features.

You can apply the code “HAC2023” to receive a unique discount tailored for the Home Assistant Community.

1 Like

So that went easier than I thought it was going to. If anyone else needs to do this great instructions here .

However, it still hasnt resolved the problem. Pairing still fails with the blinds. Any more ideas what I can try next? / Fault find etc?

TIA
lcsneil

Would the fact I am running on channel 26 zigbee be a possible cause? I dont really want to try changing it unless I HAVE to as it means I have to re-pair all the devices again…

Well in theory it should work as the Ikea spec for the blind says 2400-2483.5 MHz. Channel 26 being 2480 MHz So most probably not that.

lcsneil