#zigbee-archived
1 messages · Page 157 of 1
And from source_endpoint 3 to the s2 relay and from source_endpoint 4 to the wall plug.
Don't know what you get from this, but it is working. Hehe.
are you sure you are getting action notifications from your enpoints 3 and 4 or is it state changes from 1 and 2 that you see?
would you mind sending me screenshots from your bind/reporting pages? somehow i can't deciper what you mean with some of your settings
because with default settings, it works fine for me also (no action notifications but state changes). But as soon as i decouple endpoints 3/4 from 1/2, i cannot see my button presses on 3/4
So I sent the screenshots as DM.
I don't know if the actions are sent, no. Just know that the state is updated in HA and that everything works fine in reality. Hehe.
yeah, that works also for me. as i said. i want inputs and outputs independent ideally
thanks for the screenshots!
Ah. Okey!
Hi all, I hope this is the right channel for this question. Is it possible to bind an ikea remote and outlet to each other as well as both being added via a Conbee 2? I tried in different ways but it seems they just want to bind to one or the other.
I was curious if this might be a limitation of zigbee itsself
As I'm fond of saying - it's not the stick that matters, it's the Zigbee integration you're using that matters
deCONZ, ZHA, or Zigbee2MQTT?
ZHA
one thing beforehand, i managed to add both to HA just fine, I just wanted to know if it is possible to bind them directly to each other like with the ikea gateway
you then can also use it if the hub is not powered at all
does zha work with ser2sock/ser2net or similar?
Yes, use something like socket://192.168.1.123:4567 as the serial port path when setting it up
Perfect I’ll try it out
EZSP radios apparently have strict timing requirements so it may not work very well if you're using one over a link with appreciable latency
Not an issue for TI coordinators though
It is a nortek so could be a problem I guess
But everything is wired so hopefully latency shouldn’t even remotely be an issue
As long as you're not doing it over wifi I think it should work
I’ll find out shortly 😉
I’ve never used either ser2sock or ser2net, in this context does it matter which is used?
I think the two main ones are socat and ser2net. I was able to use the latter but they all use the same "protocol"
@austere patio do you have any plan to expose a sensor's last_seen at on HASS?
I don't work much with ZHA itself so I'm not sure. Maybe make a PR or ask one of the devs more involved with ZHA?
what would you do w/ this?
do you mean as an attribute?... may make more sense as a sensor itself on the device w/ diagnostic category
@tropic depot I have a blackout which I protected from being closed if the window is open, but it only makes sense if the door sensor is alive
yes
prob something we can look into
Yeah last seen would be great
Can anyone tell if these support zigbee? Someone in the reviews says yes but the product page isn't very clear about it.
They look like BLE mesh, not Zigbee
@austere patio and I assume that doesn't work with HA corret?
No clue, I don't have any BLE mesh stuff. I don't think it's a locked down protocol though and people mention it works with the SmartThings hub (which seems to support BLE mesh) so there might already be a HA integration for BLE mesh
ok cool. I'm gonna go with the ikea ones ig
They're large but inexpensive. Would be 10x better if they added a little button to turn them on and off.
Don't get the CC2531, it's not a very good coordinator
Depends on the integration you're planning on using. CC2652 sticks work with ZHA and Z2M, EFR32 sticks work with ZHA, Conbee works with deCONZ and seems to either work fine or break catastrophically when used with ZHA and Z2M
these all seem much more expensive. and I don't see the sonoff on amazon 😦
The $10 CC2531 you linked to doesn't come with firmware so you'll need the $15 flashing cable and programmer before it can be used as a coordinator (or an Arduino/raspberry pi and jumper cables that don't properly connect to the debugging connector)
Yeah I was planning on flashing it with a pi
I've got a breadboard
what do you mean it's not a good coordinator?
The firmware for it is not developed anymore
It can "lock up" every week or two and you have to physically unplug it or power it off by rebooting your host
Can reliably send only two concurrent requests. CC2652 can send 16.
Like if you have a small apartment and just want to connect a temperature sensor, go for it. I would just spend the extra few dollars on a coordinator that's actively supported.
Ok cool ty! this is the info I need. do you agree with cole that the sonoff is a good bet?
or is that something else
All of the CC2652 sticks are pretty much identical so if it's in stock it's definitely a better choice than the CC2531
yeah if you don't mind flashing the stick any of the CC2652 will work this just saves you that step
I think the Sonoff one is pre-flashed with a recent build of Z-Stack
sweeet thanks guys!
But even if you do, flashing the newer sticks is done over a serial bootloader, not with an Arduino and a breadboard
ok I'll probs get the sonoff then
I bought on the the cc2531s on amazon so I have something to play with until the sonoff gets here
thanks for all the help gusy
guys*
they can still work as routers
@ionic pawn are you in the US?
I am
Yep, I plan on picking that up soon
I just needed something off Amazon with 1day shipping for now
Thanks!
Hi guys
which is the best usb powered zigbee router to couple with conbee + ZHA?
is it good enough?
@puddly just an update. I've had problems with the zha integration not working when connecting the ZigBee usb dongle. I got it fixed and did two things, not sure which one or both solved it: 1. Bought and usb to USB extension cable so the dongle was far away from the RPI 4 and SSD. 2. Switched from the usb 3.0 to the 2.0 in the RPI for the ZigBee dongle. That fixed it for me. Thanks for you help, you definitely where right in the cause of the problem.
Conbee 2 backup
never mind there is an option to set postion on an blind
https://zig-star.com/projects/zigbee-stick-v4/
i got myself this one, heard its a better coordinator
Wondering if anyone would be able to help point me in the right direction
I have a hive thermostat and receiver. I have them both connected via zigbee2mqtt and I can now control the heating setpoint through a thermostat widget. All good.
However the issue I am having is that the the temperature being used to decide whether or not to begin heating is the temperature reported by the hive receiver, which is wildly innacurate.
What I am wondering is if it is possible for me to use the temperature reported by a seperate device, say a sonoff temp sensor, as the local temperature rather than the one provided by the climate.boiler entity?
I know this is all quite vague, sorry I am quite new to all this and feel like I have overcomplicated everything.
this is one potential option: https://www.home-assistant.io/integrations/climate.mqtt
Fantastic, thank you! I will take a look at this integration and see if I can sort this out 🙂
Oh wow I really have to learn more here, I am confusing myself too much.
does anyone know which zibee usb would work with sonoff motion sensor / humidity sensor?
I use a CC2531 personally
@reef aurora the zigbee adapter doesn't determine compatibility; the zigbee software does
I would skip the CC2531 and get something CC2652-based, such as the ZZH or the sonoff zigbee 3.0 dongle (🙄) plus
I've just started using deconz. A Hue light and aqara sensor had been connected via a signal repeater. But within a couple of hours they both dropped of the Zigbee network. The distance to the signal repeater is about 5 m. almost direct line. What am I missing to keep it stably connected?
And how do I get the devices back on the network?
You can also set an external temperature, and then the thermostat itself does the logic. https://www.zigbee2mqtt.io/devices/UK7004240.html#external_measured_room_sensor-numeric
However you need to have an automation which updates the external_measured_room_sensor value.
Ah, I have realised the limitation I have here. I think I will just get a different receiver and thermostat.
Pretty much, when my HA instance is paired with the receiver, the hive thermostat will no longer connect to the boiler, understandably. However the local_temperature value set on the receiver will remain at the last temperature reported by the receiver.
So it doesn't matter what temperature value I use within home assistant, the receiver will not turn on the boiler unless the occupied_heating_setpoint is above the internally stored local_temperature value.
I should've realised this from the beginning!
ok, my sonoff sensors seem to work with my conbee II
kinda-
i was able to pair temp sensor, but only after several tries
did everything exactly the same every time, pressed button for 5 seconds, scanned for new sensor
What am i doing wrong?
Sensors pick a network to join, not the other way around. I usually have better luck permitting joins and then resetting the sensor.
so should i just leave the sensors and wait for deconz to pick them up?
*phoscon
Permit joins and then reset the sensor. The sensor will scan for networks, see that the Conbee's network is open, and then join.
ok ty
I haven't tried with the Conbee but I've never had issues with that order when joining the Sonoff temp sensor to CC2652 and HUSBZB-1 coordinators
It just takes a few seconds for it to scan after the light turns red
I'm not sure if deCONZ hides the device until it is completely initialized so maybe try ZHA?
z2m firmware update of a philips bulb takes 30 minutes. is this the norm?
I can remember doing updates within 5 minutes with zha
How many are you updating at once?
only one
hi not sure if this should go here or in hardware but i figured here would get the best chance of someone being able to help. i recently got one of these zigbee remotes and am having a hard time getting it to work in HA. i have gotten colours working sort of but they are always offset and i cant get power working properly. has anyone used one of these with HA before and if so how did you set it up? https://rgbgenie.com/?product=rgbgenie-rgbw-remote-zigbee
I feel like my hue bulbs are brighter at 100% now they're connected to ZHA than they were when they were on the hue hub
Do I need a hub for eg aqara or ikea to use with ZHA? I can use it with Conbee 2
No, you use the conbee
Great, thus I can connect the ikea, aqae, hue etc. to conbee directly?
If there a real advantage of using deConz over ZHA in my case?
No idea, I use zigbee2mqtt
do not use deconz directly yse zigbee2mqtt
why zigbee2mqtt over the built in integration?
lighter faster stronger ? 😄
how can it be lighter to have an extra dedicated app running than to use the thing that is built in?
i try to use multiple times deconz and each time have some issues, the embedded gateway is a nightmare and if you change some config
you can lost all your setup ...
well
bad experience with
😄
i dont mean the dedicated deconz software i mean the HA integration (https://www.home-assistant.io/integrations/zha/)
I use zigbee2mqtt because I prefer decoupled systems
I run nothing directly connected to HA, HA just processes everything
thats fair
i like the ZHA integration because i like having the interface for adding devices etc.
Opening the webui of z2m takes 1 second
Can also be added to any button via mqtt
So you can reach it native in HA
If you so must
wait zigbee2mqtt has a web ui?
ok i guess i will check it out when i have some time
ZHA FTW 😉
Hi here!
I have an issue with my setup.
Using Consbee and ZHA i can read the status of my ZBMINI but can not turn it off... Could it be a cable issue or is it a software ?
Is there something fundamentally wrong with the deCONZ integration? (I’m using Container in docker.) I’ve got two Hue hubs that are connected without problem, but deCONZ keeps showing ‘retrying setup’ and errors like Logger: pydeconz.websocket
Source: /usr/local/lib/python3.9/site-packages/pydeconz/websocket.py:110 I believe I read about a different integration to try, but can’t now find the details anywhere.
Ditch deconz and just buy a usb zigbee stick.
My question is the choice between ZHA and deconz integration. (Not gonna use zigbee2mqtt.)
Are there objections against using ZHA?
Device i use
- aqara
- ikea (curtains mostly, and signal repeaters)
- hue
- hue with bridge
when you make this kind of statement you have to elaborate. which stick and what zigbee integration to use
Hello, I bought 2 ikea tradfri buttons, but they runs out battery in few days. I saw there was a big thread, but didn't find a specific solution. I updated gateway's tasmota firmware, there is more I should do? (change polling rate or similar?)
I'd also like to know what the gain is from ditching deCONZ. I assume this is based on something other than a bad opinion of deCONZ?
Well, I was replying to @sharp surge but the great thing about discord is multiple people are participating and can provide input. I do not use zigbee but I am aware of all the deconz issues.
So you don't use zigbee, but you have an opinion on the hardware we should use?
I have an opinion on not using deconz.
Any cc26xx stick plus zigbee2mqtt is my recommendation
And I use zwave which is just another mesh system
So is it the software - rather than the conBee II hardware - that is the issue in your experience?
That's strange. I had no issues running deCONZ with homebridge and I would have thought - though I am clearly wrong - that the conBee hardware would qualify as 'a cc26xx stick'
I've tried to set it up for several devices with deConz. It's started to loose devices within a day or two. After restart it's not all are coming back online. Cmon, this is not scalable to 100 devs
Conbee2 is not a Texas instruments chip no
What are the alternatives to conbee 2 that do not require using a hub (eg ikea gateway, aqara hub)? (not interested in zigbee2mqtt sorry)
Does any have the SONOFF ZIGBEE 3.0 USB DONGLE PLUS and followed this instructions and got it to work (with the ZHA integration)?
https://sonoff.tech/product-review/zigbee-3-0-usb-dongle-plus/
tbh I'm using a conbee2 stick with Z2MQTT without any issues or weirdness
only used deconz to update the firmware
That's good to know. Thank you.
but then again, I don't use these funky vendors 🙂 like sonoff etc
only hue and aqara
Pure hue/aqara/tradfri/gledopto mesh here
With months of uptime between upgrades / reboots of coordinator
And instantaneous reactions
The conclusion that I've drawn is that people feel that deconz on conbee is a bit less stable than ZHA but there's little evidence to this. I guess will give deconz a try and then move to zha if needed
I have never used zha or deconz, I've just seen the users crying across a dozen servers
I am managing to get a bit further than earlier. I had an existing installation using deCONZ with homebridge that had various groups/resourcelinks/rules set. Although HASS has an option to ignore deCONZ groups, these were NOT filtered out. I have deleted all these extras and I am just using the conBee II as the zigbee interface to HASS with no extra features, it seems much more stable. (Previously, I was seeing entity statuses flashing on|off all the time.) I am also not seeing any error messages in the log. (This is with 70 devices comprising 97 entities.) Good luck!
Hi, I'm installing HA at my parents and I'm not able to pair zigbee devices anymore. I'm using Z2M v1.21.0, with cc2531 coordinator running fw 20190619. I managed to pair 5 devices without issues. But when starting with a 6th, I first saw it with missing information. I deleted it, then tried to add it again without success. I know there is a limit but is it set to 5?
Should manage more, but cc2531 will guarantee you a horrible experience unless it is a very small apartment or few total devices
And if it doesn't have an external antenna it is borderline useless
Sorry, could help me with ikea battery devices?
#zigbee-archived message
How do you delete all the extra stuff and what is safe to delete?
what do you suggest as a zigbee controller?
https://www.zigbee2mqtt.io/information/supported_devices.html 404es, btw. (from the pinned messages)
"Wanting advice about what stick? Look in the pinned messages. Just don't buy anything CC2530 or CC2531 based.".. well.. that barely excludes anything.. i'm looking for a recommendation.. i'm very happy with the z-wave stick.. the aeotec one.. looking for something similar for zigbee.. have no idea about the differences between zha, zigbee2mqtt and deconz.. so i'm looking for advice regarding that as well
what about https://zigbee.blakadder.com/ZiGate_ZiGate+_USB.html ?
That excludes quite a bit actually. Anything CC2652-based is a solid choice
sonoff's sold out
They're all CC2652 sticks so they'll behave more or less identically
What integration are you using?
Different integrations support different coordinators
CC2652 sticks work with both ZHA and Z2M so they're not a bad choice
deCONZ only supports the Conbee and is a bit harder to hack on since it's not fully open source
Yeah, I tend to recommend cc2652-based stuff since they work well with both ZHA and z2m
You’ll need to use the REST API or Phoscon app (though that can be really painful). If you didn’t specify groups, rules or resourcelinks, there will not be any there by default.
I added a Styrbar ikea 4 buttons remote to ZHA, but it only sees the battery entity. It does show Quirk: zhaquirks.ikea.fourbtnremote.IkeaTradfriRemote in zha but I'm not sure how quirks work.
Have you tried unplugging the CC2531? I've had it get stuck before and not join new devices.
Looks like I can use zha_event to get presses. Need some dedup but for basic functions it works.
ConBee have the largest YMMV factor of any other sticks in existence.
Deconz q
Yes I did, without success unfortunately.
Has the CC2531 been recently flashed with firmware?
Not recently. The last time, it was more than a year ago.
Any advice on troubleshooting a device that keeps losing connection? I have a tradfri on/off switch that constantly can't connect and i have to re-add. it's in a room with two mainline power repeaters, and the room is just below the room that contains the controller usb stick (on a usb extension cable).
How's the battery?
Not since leaving the cc2531 behind no
battery is fine, tried unseating it and reseating it too
Try putting in a fresh one just in case
Hello, I'm using Zigbee2MQTT and Home Assistant with MQTT Discovery enabled and I'm having a weird issue since yesterday. I added 4 additional Philips Hue light to my Z2M instance and from the Z2M UI, they work perfectly. My issue is they do not show up in HA, not even in the logs (as an error or such). Everything else with Z2M works perfectly, including another 16 philips hue lights that are discovered and controlled in HA.
have you looked at the map and seen what its connecting through?
when I have disconnection problems its making horrible decisions on what to connect to
@austere patio its a 3v battery and its testing at 3.06v but okay
@uneven ruin its connecting to just one of the repeaters in the garage right now (it's also in the garage)
Open circuit voltage doesn't really tell you much the battery is actually discharged
but it could develop more connections later, I only just managed to get it to re-add
Even a completely drained coin cell might "recover" up to 3V if you let it sit for a while but then drop the moment anything draws current
my zigbee network definatley has odd choices of connections
I guess, but my battery tester has always been pretty reliable, and its also only a few months old
but its got a duracell in it now, perhaps the colder temps in the garage were impacting it
@uneven ruin are you implying you can force it to make smarter connection decisions?
You can "force" the initial parent but there's no way to prevent the device from picking another one later
I've found dumb devices that make bad decisions can work their way towards good ones if you pair a few more times. at least the aquara type ones can
those never change their "parent"
i'm constantly re-pairing this one casue it keeps losing connection
currently its chosen to connect to just one repeater and that's in the garage
theres another in here it should connect to but its not. I've seen it where after a few weeks I'll check again and it's made new connections
Your integration should allow you to permit joins only through a specific router
I dont see that in ZHA
Click on a specific router and in its device page, you should see a "permit joins through this device" button or something similar
how can i find out why my zigbee lights (through z2m) wont change state in lovelace when pressed physically, and only showing when pressed through HA?
Are you cutting off the power to a Zigbee light?
Is this a good zigbee adapter? Nortek HUSBZB-1 Zigbee & Z-Wave Plus USB Interface
It works fine but it's expensive for what it is. You'd have better results buying separate Z-Wave hardware and either a newer EFR32 Silicon Labs stick or a CC2652
nope.. but my H1 EU switches are without neutral, so they are EndDevices.. but I didnt have this problem in ZHA, I have it in Z2M
@austere patiocan you tell me where and what in Z2M is deciding about showing or not showing changed state in lovelace? is there a way to look it up? maybe it is just about some one click somewhere or some line of text not written down
I don't use Z2M so I'm not sure but I think it might have a per-device poll setting?
does it change state in z2m?
@earnest hingei just did turn one of the switches, in Z2M dashboard it didnt change a thing
when i press it on my computer from off state to on state, it showed the change
so when I physically press it, nothing - when i press it on a device, it is changed
and all have Last seen: N/A
Last seen was set in settings/advanced to disabled, I changed it and now it works.. but it doesnt do anything with my problem
@earnest hingethanks for the link, but what it means for me?
what should I do to get full functionality?
"Thus one is nearly the same as QBKG39LM
Copying configuration from QBKG39LM gives full functionality."
These aqara temp sensors are all over the place. Order 4 of them. They're sitting right next to each other with different temps on each.
If they are not all within ±0.3C return them. That is their advertised spec.
Maybe they were just cold from shipping. Seem to be coming together now
Hi! I've got the HA Blue with a Conbee II and ZHA. Lately the bindings for the IKEA remotes to the light groups started to drop, meaning it'll just stop working and i cant rebind it somehow. I heard the Conbee II could be a bit troublesome and i was recommended to get a Elelabs Zigbee USB adapter (ELU013) instead.
Is it a common issue that the bindings just stops working?

You're on an outdated Z2M install because your repo is wrong, update the add-on repo, then update Z2M, then try again
I've done that... nochange
Please use a code share site to share code or logs, for example:
- https://www.codepile.net/ (select YAML as the language)
- https://paste.debian.net/ (select YAML as the language)
- https://hastebin.com/ (sometimes may not allow you to save)
Please don't use Pastebin, since it can randomly add spaces to the main view.
Use one of those to share the new error from Z2M
I've switched on the auto update... no, don't tell me... the REAL way to update is embeddeed deep in a README file I haven't read properly, right?
Well, you need to update the add-on
If you don't know how to do that I'm sure #add-ons-archived will know - I don't use them so I can't help there
The process in the pinned message covers it pretty solidly though
Is it a bug that the sonoff zigbee stick is identified as a z-wave stick as well?
i get prompted to set up z-wave after plugging it, after i've already set it up with zha
i didn't follow any instructions, i just chose silicon labs protocol and it worked out of the box
That's not working for me
didn't flash either cause i had bad experience with july firmware
What version of HA are you using?
what isn't working for you
I can't get the ZHA integration to add the zigbee dongle
Do you get any errors
i really like it, the signal is better than with my old 2652 stick
bizarre, I literally tried adding it yesterday about 20 times, unplugging/replugging, rebooting etc and it the ZHA integration kept erroring out
computers man
Well i actually have two of the dongles and two RPis and the same was happening on each (different HA installs)
I'll try add the second one to the second Pi and see what happens
If I want to use these dongles with zigbee2mqtt, will i need to reflash?
yeah ok. I downloaded to the TI flashing software
i don't remember whether it has the nvram reset function
i would stay on the original firmware honestly
I see. How do you normally reset the nvram?
i installed zigpy into a python virtual environment, activated it, and run this sudo python -m zigpy_znp.tools.nvram_reset /dev/ttyUSB0
this is on linux tho
there are plenty of guides on how to do that on windows i imagine
i use linux mostly
yeah i just did virtualenv -p 3 zigbee && source ./zigbee/bin/activate && pip install zigpy-znp
Error setting up entry CP2102N USB to UART Bridge Controller, s/n: xxxxxxxxxxxxxxxxxxxxxx - Silicon Labs for zha
10:07:04 PM – (ERROR) components/zha/core/gateway.py
Couldn't start application
10:07:04 PM – (ERROR) /usr/local/lib/python3.9/site-packages/zigpy/application.py
Ended unfinished session (id=2 from 2021-11-01 10:59:12.756009)
10:01:34 PM – (WARNING) Recorder
Tried to setup the second Pi and dongle, this is the error I got (and was getting before)
Not having any luck adding devices to the one that is working either. I've tried add a sonoff and aqara motion sensor but ZHA never finds them. I have them right next to the dongle.
Hello, Ikea buttons runs out battery, I updated tasmota hub, there is more I have to do?
To do ... what?
avoid battery totally discharged in few days
That shouldn't happen unless the button is jammed on
I saw in a bi thread was a common issue, maybe due to a too much aggressive polling
Buttons should last a year or few unless the connection to the mesh is very weak
And battery powered devices aren't polled
I have a repeater in the near room, and i'm at 3rd battery in less than a month
there is some issue with ikea buttons and ezsp coordinators,not sure if there is any fix for it tho
I am adding an Xiaomi button to Zigbee2MQTT. They tell me to add a line of code to the "devices:" in configuration.yaml.
But where do I add the "devices:" line? Is it part of "default_config:" or "homeassistant:"?
Yes, I read this
https://pastebin.com/AXD56n4E
but not sure if is the only fix needed
Has anyone had issues with the ikea motion sensor not resetting after it detects motion? I have automatic lights that turn on if I open a door, but only if there's no motion detected inside the room. However, I've been having issues where the lights won't turn on because the sensor says it detects motion, even if I haven't been in the room for hours.
Or maybe it's just becoming unavailable
Oops nevermind, it was an issue with my code. I was checking if it was off, when I should have been checking if it was not on
Can you enable https://www.home-assistant.io/integrations/zha/#debug-logging to see what the actual error is in your home-assistant.log file?
Hi I'm looking for instructions to flash cc2351 card, the zigbbee2mqtt.io website seems to have changed since yesterday & instructions have moved / disappeared ...
That links then to https://www.zigbee2mqtt.io/guide/adapters/flashing/flashing_the_cc2531.html
@sour shadow thank you!
I am using the z2m add-on and just updated to the latest version released today (as pretty much nothing wrked with previous update). I am starting everything from scratch and will pair my devices again. However, when setting the configuration to connect to the MQTT of HA I am getting MQTT failed to connect: Connection refused: Not authorized
server is set to mqtt://core-mosquitto
from the container I can ping core-mosquitto.
from my own box I can connect to mosquitto with the exact same credentials provided in the conf
I am just surprised by the "not authorized" which does not sound exactly like bad login/pass
on mqtt side I can se these logs :
1635796382: Socket error on client <unknown>, disconnecting.
1635796383: New connection from 172.30.33.5 on port 1883.
Sounds like an #add-ons-archived problem
fixed, was a stupid mistake
My aqara temp sensors go unavailable after a few hours. Restarting homeassistant brings them back somehow.
I've got some zigbee chatter in the logs. Anything to be concerned about?
No response to 'Command.write_parameter'
Unexpected transmit confirm for request id 11
Platform zha does not generate unique IDs. ID 00:12:4b:00:23:ac:15:cc-1-6 already exists
Is it possible to use Philips Hue smart plug without a Philips hub (ZHA being used with HASS instead)? Looking to add a smart plug as a router in the middle of my house to help with the some of the connections. I live rural and this is about the only Zigbee device I can grab locally without getting something shipped to me
@urban blazeif it is a question then try to find it here, see if it's supported: https://zigbee.blakadder.com/zha.html
With ZHA though almost any Zigbee device should work - and that goes even more so for Philips (Zigbee) devices
anyone has this device? (Zigbee Gateway Tuya Single Phase 65A Din Rail WIFI Smart Energy Meter timer Monitor kWh Meter Wattmeter 110V 220V 50/60Hz)
I am curious how well it works with Zigbee2MQTT
totally forgot about blakadder. Thanks @ivory hound
anytime man
Anyone willing to talk with me about some possible solutions to why my ZigBee mesh is so unreliable? I feel like every day a different device has become unresponsive and it's causing a bunch of headaches.
Don't ask to ask, just ask your question. Then people can answer when they're around.
When you do ask a question, try to provide as much background detail as possible. Ask yourself these questions first so that others don't have to:
- What version of the Home Assistant are you running? (remember, last isn't a version)
- What exactly are you trying to do that won't work?
- Is the problem uniform or erratic?
- What's the exact error message?
- When did it arise?
- What exactly don't you "get"?
- Can you share sample code, ideally with line errors where the error occurs?
If it's a really complex problem, do consider posting on the forum instead
I'm gonna bet on CC25xx, no routers, deconz, zha, heavily populated apartment building with lots of 2.4ghz devices
choose 3
🧑⚕️
And interference, lots of
Zha, nortek gocontrol (on default channel, 15 I think), my wifi on channel 9 (so only a little overlap), one Ikea ZigBee range extender and two Ikea ZigBee plug sockets as repeaters, and I live in a town home, so only one person on either side of me, one with a somewhat strong router on channel 1
Yeah, and try to place your zigbee network on a channel without too much wifi interference if possible.
Channel 9 for WiFi... that's ... odd
There's a pinned message that covers scanning for interference. You'll also want to stick the coordinator on a USB extension cable
Well 1 6 and 11 we're all pretty populated, my router actually chose 9 on it's own
Yeah that was going to be my first step, unfortunately with both my router and rpi on the same usp, they're right next to each other. I just bought a USB extension so hopefully I'll get the USB dongle at least a few feet away from the router
My problem with the wifi is that channel 6 is pretty low congestion, but then it'll overlap quite heavily with ZigBee channel 15, and I'm not entirely sure how to go about changing it, and I assume I would need to re-pair all of the devices
You would
Is there any reason why I shouldn't have my wifi on channel 9?
The interference scan however will tell you what channels are better to use
Is it just not meant for that?
Well, on channel 9 you're interfering/getting interference from everything on 6 and 11
You've just made life worse, overall
Okay, yeah my router changed to it about a month ago for some reason and I feel the wifi has been a bit more spotty, I think I'll take manual control over it and switch it to 11, which is slightly more congested than 6, but won't overlap with my ZigBee stuff
Alright that's fixed, going to take a look at the interference scan pinned message, thank you
actually, if you arent using any 2.4ghz devices
you can just turn it off
I only have my ESPs left on 2.4ghz, and one of my heat pumps
for most homes with modern devices there wouldn't be any 2.4 only devices I guess
I'd bet you're guessing wrong 😉
For really modern homes, run by geeks, maybe you'd be right
For the majority though, it's gonna be a random shit-show
For apple fanbois who upgrade their hardware every three months
it might be true
kek
I'm looking at the interference scan commands but I'm unsure how to get them to work. I'm attempting to enter them into the terminal ssh add-on from within HA, but it's not working
You'll likely need another PC/VM to run all that
And you probably want a spare Zigbee stick - but here even a CC253x stick will be fine
Wait so I can't run the interference scan without a whole other computer and ZigBee stick?
Well, you can use the same stick, but you'll need to stop HA first
Whether you can run the required commands inside the SSH add-on, I have no idea
And if I stop HA, I can't use the ssh add-on. Makes sense
Sure you can
Oh
HA is another container from the add-on
You're just unsure on wether or not it'll work?
I don't use that install method, or add-ons
Ahh, yeah mine is rather basic. Just HAOS on a rpi4
Well since I've moved my router, and now ZigBee channel 15 coincides with the least congested wifi channel, I'm just gonna skip the interference scan
I'm not ready to change channels and repair all of my devices
I'd rather start with moving the USB dongle to an extension cord
how many devices do you have ?
it is usually less than a minute per device to repair
I did 60 in 45min
35
so less than half an hour if you choose to repair at some point
unless the devices are well hidden
Will I need to rebuild all of my automation as well?
Or will it remember device names and IDs when I repair
no idea for your integration, for zigbee2mqtt they came back with the same name
I still think I'm gonna start with moving the dongle to and extension cord
Easier than stopping HA in the middle of the day which messes with our automations, using a whole other computer to run Ubuntu (which I've never used) to run commands to determine the best channel, to then go re-pair all of my devices in hopes that it remembers each of them. It seems like a bit much
I'll start with the easier solution first, and if it doesn't work, I'll come back and you can say you told me so 😅
Am I able to just unplug the dongle and plug it back in no problem? Or should I stop some sort of process?
you would need to restart whatever is using the dongle
Yeah, it'll reconnect at runtime
So I should just be able to unplug, replug, then go into integrations and reload zha?
If you have a second computer to run bellows, you can just yank the stick out and plug it back in later
What's the easiest way to run bellows? I'm assuming I'll need a Ubuntu vm?
Don't actually yank though, be a gentleman/woman/meatsack
I'll be as firm with her as I darn well please tyvm
These HA addon instructions are for a different package but are still valid for bellows: https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#in-home-assistant-os
If you don't have a second computer with Python to run stuff. Even windows will work.
I have a windows PC with python
The thing you just sent me tho, that looks like it's meant to run from my rpi, correct?
All of the zigpy packages, including bellows, run on any platform with Python 3.7+ installed
Looks like I install zigpy and do an energy scan?
bellows is used by ZHA to talk to your radio so it's already setup and running in your Home Assistant container
But if you have a second computer ready to go, it's usually easier to pip install bellows and run the scan from there
Instead of installing HA add-ons and configuring them
Okay, lemme give that a try right now
I'm assuming I should grab the dongle first? Lol
If you are using windows, make sure to run pip install pyserial-asyncio==0.6 after so that it works
The instructions I linked to earlier have a section for every platform. Just install bellows instead of zigpy-znp and run the appropriate bellows scan command
I'm In windows terminal, but I don't understand what to type
pip install bellows doesn't do anything
The > py command from the link you sent doesn't do anything either
Do you have Python installed
Yeah
Then you should have the py -3 launcher (there's no leading >)
Doesn't look like it's setup properly if you can't run it. Try the HA addon way if you don't want to try reinstalling Python.
If I open up windows terminal, what exactly should I type?
Just to make sure I'm not doing it wrong
py
If that doesn't work, the Python installer may not have created the launcher script. Last I checked that's the default so maybe try reinstalling a newer version of Python for windows
Alright I just updated python and it looks like it's working
So now how do I install bellows instead of zigpy
pip install bellows and then run that other pip install command I mentioned earlier
I'm getting a syntax error
File "<stdin>", line 1
pip install bellows
^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
That's supposed to be run as a command, it's not Python code
i dont know what that means
You ran the py command to launch the Python interpreter
pip is another command. Exit out of the Python interpreter with ctrl-z or whatever the windows shortcut is.
pip : The term 'pip' is not recognized]\
i just launched a fresh terminal, and typed pip install bellows
Hmm, windows. Maybe py -3 -m pip install bellows ?
sometimes you might need: python3 -m pip install bellows
of whatever pkg you want to install
that looks like it worked
now?
it looks like bellows downloaded, but i typed bellows scan
and nothing happened
bellows -d COM3 scan -e -t 500 --channels 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 should work (replacing COM3 with your radio's COM port)
in device manager i see "HubZ zigbee com port", but no where do i see a number
is there something i should be looking for in properties?
it also says drivers arent installed
Looks like you have to "view hidden devices" in device manager on Windows 10 to see them
says the term bellows is not recognized
lmao
when i go to download bellows again, is says its already satisfied
i updated the driver and my com port is the same as yours, so i copy pasted the command
yeah it said python was not found
how do i update the path? just uninstall and reinstall?
I don't think you can run bellows directly as a module. Yeah, this is a Windows PATH thing. No clue where it installs packages which is why I always use a virtualenv (https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#creating-a-virtualenv-recommended)
Ah. 1 out of 2 isn't bad though. I'll take that.
im trying to set up virtualenv and using
py -3 -m venv venv
venv\Scripts\activate.ps1
nothing happens when i type the first command
If you're not using Powershell, use the .bat file, not .ps1
im using powershell
windows terminal and powershell are the same thing
im definitely not using command prompt
when i enter the second command, i get "venv\Scripts\activate.ps1 : File C:\Users\Art\venv\Scripts\Activate.ps1 cannot be loaded because running scripts is
disabled on this system."
hey, trying to setup HA, added zigbee2mqtt repo but it doesnt show up on the addons list 😦
https://www.reddit.com/r/homeassistant/comments/qileys/unable_to_add_zigbee2mqtt/ same issue like here
alright i have a venv running, now what?
Reinstall bellows and run the command, should work
so py -3 -m pip install bellows
then bellows -d COM3 scan -e -t 500 --channels 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
?
its finally working, thank you
its all negative numbers, should i go with lower or higher numbers?
Then #add-ons-archived may be able to help further
They're RSSI values so the more negative, the less noise. What do your scan results look like?
@night rain posted a code wall, it is moved here --> https://hastebin.com/yorapohopi
so channel 20 would be best it looks like
Found it!! i added yesterday also the homematic addon, and they said i should clear the cache, i remembered that right now, cleared cahce et voila it shows up 🙂
You seem to have nearby WiFi networks on channels 1, 6 and 11
If you want to change the channel and possibly not have to re-join all of your devices, run bellows backup -d COM3 > backup.json to make a backup, edit the channel and change it from 15 to 20, then run bellows -d COM3 restore -f -B backup.json
would that work if the dongle isnt plugged into the pi?
also i think im gonna take my laptop down near where the dongle will actually be located and run all of this again
just to double check, cause im currently running the scan from the other end of the house lol
Scanning where the coordinator will actually be located is a good idea 😆
alright i reran it and seems to be the same
@night rain posted a code wall, it is moved here --> https://hastebin.com/huqemokuli
(venv) PS C:\WINDOWS\system32> bellows backup -d COM4 > backup.json
Usage: bellows [OPTIONS] COMMAND [ARGS]...
Try 'bellows --help' for help.
Error: Missing option '-d' / '--device'.
My bad, bellows -d COM3 backup ...
Is an LQI of 0 for a zigbee plug powered by mains normal?
What coordinator are you using?
@austere patio Was that towards me?
Yeah
Are you seeing this LQI in the ZHA device's page?
i ran the backup, edited and saved the new channel, tried to restore, got a ton of text and was unsure of whether it worked or not, so i tried to back up again, and the new file still has the old channel
on the zigbee2mqtt fronend
@austere patio i got this in return when restoring https://www.toptal.com/developers/hastebin/bivuwimome.lua
Anyone looked at the Hive Siren https://www.hivehome.com/shop/smart-home-security/hive-siren there isn't a lot of info out there but it's tagged as "Zigbee" on their site.
It's saying the JSON is invalid. Is the file empty?
no, maybe because i edited it with notepad lol
should i get notepad++ to edit it?
yeah that didnt help
Well, the error message doesn't lie. Can you upload that file somewhere or PM it to me?
okay so i just tried backing up, then immediately restoring without any editing, and its spitting out the same chunk of code
I think it could be powershell redirection. Can you remove the > backup.json part and copy/paste it into a file?
copy paste what?
The bellows backup command will print the JSON to your terminal if you don't redirect it to a file
just create a new file on notepad ++?
ive done that, now what?
Does that backup file restore properly?
do i save it to the same location as the other one and with the same name?
If the old file doesn't work then you can replace it
This came today. I'm going to swap out the conbee2 and see how it goes. It seems like HA is showing unavailable for the aqara temp sensors after some time (using two z31 lite zb plugs). Oddly, restarting homeassistant software seems to bring them back which surprises me. Curious to see if the sonoff zbdongle will maintain the connection.
this time i didnt get an error, it just said restoring ncp for like 6 seconds then nothing, just went back to waiting for another command
should i back up again to see if it worked?
You should be able to run bellows -d ... info to see network settings
Or do the backup if that works
I have one Aqara Smart Socket with power monitoring connected with ZHA. I can see the "electrical_measurement" entity updating regularly, but the "smartenergy_metering summation_delivered" I get only at most once per day. Any ideas what's happening?
https://i.imgur.com/fV6S3iR.png
yeah it updated. now do i just plug it in to the pi, and reload zha integration and hope for the best?
If you didn't touch ZHA and just unplugged the stick, you only need to plug it back in
Your routers won't know about the new network though so you will probably have to power cycle them
well, so far nothing has become available yet
@austere patio im freaking out lol i cant even tell if the stick itself has come back online yet
Not all devices will re-connect to the same network on a different channel so you may have to just re-join the routers that don't
neither of my plug sockets or my repeater joined back up, im assuming i need to repair them?
Did you unplug them for like 10 seconds so they shut down?
no, let me do that now
But yeah, changing a Zigbee channel is not like changing a WiFi network's channel. I can get most of my IKEA devices to migrate after a reboot but some require re-joining.
so ive added both of my plug sockets, but i still cant control them for some reason
nevermind theyre starting to come back. looks like ill have to add a few, but thank you @austere patio , definitely took a bit longer than i was expecting, but hopefully itll hellp
No problem, hope your network works better after the channel change. Unfortunately, Windows doesn't make installing a Python package and running two commands very easy.
Ok, trying to get my hue bulbs to pair with the coordinator. I have reset the bulb with the remote and they just aren't being discovered at all. Anyone have any ideas? All my other zigbee stuff has paired without issue.
I have no Zigbee devices at home yet. I am considering buying several IKEA TRADFRI motion sensors to use with HA (not paired to individual IKEA lights, as I don't have any nor do I plan to buy any in the short term).
I read that this is possible although not with the IKEA gateway. So, before buying anything at all. I've looked into USB dongles that could replace the IKEA gateway... and ideally save a few bucks along the way. I read that the recommendation is to go for CC2562-based dongles, too.
The only CC2562 dongle I found that costs less than the IKEA gateway is the "SONOFF Zigbee 3.0 USB Dongle Plus".
Since it's a HA environment, I'm thinking ZHA may be easier than Zigbee2mqtt (but I also have tasmota devices, so mqtt is there too).
Is that a good choice based on the context?
The IKEA motion sensors were horrible
I got rid of them quite quickly
Also any 25xx dongle you should avoid
The Sonoff dongle you mentioned is CC2652, it'll be fine
If you have just a coordinator and motion sensors, your Zigbee mesh won't be doing much meshing and your range will be somewhat limited. If your installation is larger than a small apartment, I suggest getting some router devices (anything mains-powered, like light bulbs, switchable outlets, dedicated routers, etc.) so the motion sensors at the edge of your mesh can reliably transmit back to the coordinator.
oh? Please elaborate... and if you have better experience with other motion sensors, advice is absolutely welcome, more so now that I haven't bought anything yet
Xiaomi are great
But yes, have a lot of routers, I use tradfri bulbs around my house
Xiaomi on Amazon cost nearly double than IKEA, at least here. I am willing to follow your advice, but how do I justify that to my "CFO"? What made you remove the IKEA ones?
AliExpress is cheap
fair enough... only 1,5x 😉
The older Ikea's only had fixed timeouts via a switch on the back, that was horrible, and thankfully I only bought 3 of them before I bought the xiaomis
Then again... I have 120+ ZigBee devices
ok, that is indeed a good point, ... so you configure your xiaomi timeouts remotely and they are more flexible than ikea, right? I was assuming that timeout would be done in automations in HA.
(but trying to learn from experienced people, this is why I'm asking)
I don't know if that still holds valid for the new models
This was first gen IKEA motion sensors
But Xiaomi are reasonably priced, and has great battery life
And just looks better
Thanks! I found them at around 13-14€ per piece on Ali... Reasonable indeed. But you're getting me a little worried with all the router stuff. Is around 6m + 1 wall too far away?
The battery operated devices do not mesh generally
So you would just have a lot of point to point, with great chance of interference and dropouts
Thanks for all the advice!
What didnt you like about them? I got quite a few, if you dont mind the 3min cooldown they so their job very reliable 🤷♂️
The cooldown was one, but they also disconnected a lot and ate batteries
I replaced batteries in them before 4 months were passed
My Xiaomi ones are still going after almost 2 years
One is even hacked to have 1s timeout
Odd, I havne't had any disconnects nor battery drainage. The cooldown is fine for lights, I got hue motion sensors where I want shorter timeouts
This was first gen and three years ago
I get ghost "hits" with the zha integration while using groups
the lights are definitely not defined in one group
Iam using the conbee 2
if I turn on the group, a light that is not part of the group while turn on/off like the group
It must be a part of the group if it's being controlled. What's the light and what device are you using to control the other group of lights? Some devices automatically add themselves to groups.
the device is definitely not part of the group
the ghost device is a 30w Ikea tradfri driver and the other devices are Ikea tradfri GU10 bulbs bound inside a group
I got another group with a couple of tint devices bound inside a group. the tint group will control the ghost too
how can I check the groups beside the GUI?
and how can I stop them to add themselves to groups? this behavior is pretty nuts
@austere patio
repair everything that is acting up
"factory reset" or whatever
the device will forget what group its in and you can restart
Do Sonoff S31 Lites have problems with pairing new devices to the network? I have to bring in my SNZB-04 door sensors to pair them. I just swapped to a CircuitSetup stick. Most devices play nice but these are oddball.
Does anyone know of a zigbee plug that has a controlable USB socket and that plays nice with ZHA?
Oh, and US socket.
hey guys, I had a conbee II running quite a while with ha and the deconz addon. i'm not switching over to ZHA, its working so far but the intial radio adding took quite a while (1-2mins) and also the restart of home assistant now takes additional 1-2mins because of the ZHA integration. Is this a normal behaviour or is there something going wrong?
Note that ZHA is an integration not an add-on
I'm pretty happy with the Sengled plugs. they are 15amp and include power monitoring as well.
ZHA shouldn't be affecting restart if you aren't using it
does the "GET ZIGBEE ATTRIBUTE" button in ZHA Clusters window actually query the value from the device or does it show the last value it received before?
I have the problem that settings done in the Z2M frontend are lost every time I restart HA (I'm using the HA-Z2M addon). They survive when I restart only Z2M from the frontend. Is this normal? Do I have to take everything over to the addon configuration?
Sounds like #add-ons-archived
pretty sure it queries the value. If you unplug it and try to click it again, it won’t work
Hello To all I'm facing a issue with a integration ZHA and the new Sonoff ZIGBEE 3.0 USB DONGLE PLUS. I'm not able to add any new device. Is anyone with a similar issue ? Thank you
I use this tutorial to perform the installation/configuration :
https://sonoff.tech/product-review/zigbee-3-0-usb-dongle-plus/
But the devices doesn't appear to be added ..
What device are you trying to add? Zigbee is like WiFi when it comes to authentication. The network permits devices to join, the coordinator doesn't search for devices.
I'm trying to add the Mijia sensors and some Aqara Sensors also
I'm using the menu over the ZHA Integration ADD device in the lower right corner
So you click the "add device" button, hold down the reset button on the Aqara sensor for a few seconds until the light blinks twice, then just wait?
Yes, but in the list/menu of search doesn´t appear any device...
It might take a few tries, though I've never had any issues joining Aqara sensors to a CC2652 coordinator on the default channel.
I try several times and with different device types
Do you click the "add device" button a few seconds before resetting the sensor?
I press the add device in the Integration and after this I reset pressing the physical button on the device in order to enter in paring mode
Have you performed the joining procedure for Aqara devices before? You have to hold down the reset button until the blue LED blinks slowly three times. Once it blinks for the third time, it should blink twice more (or do a long solid blink) and then start looking for a network a few seconds later
Yes I know that
There's no other procedure to join devices to the network so short of the Sonoff having a hardware issue (like their last batch of Zigbee USB coordinators did), I'm not too sure what to suggest. Try enabling https://www.home-assistant.io/integrations/zha/#debug-logging and post the log? CC2652 support is stable at this point so I doubt it's a software issue but you never know.
Ok thank you I will try. But this Sonoff USB Dongle is the one that is with pre fw installed. I will also check for a available update
I've had tons if issues pairing xiaomi devices. Last time I added something I tried to enable joining via a ikea outlet and it worked instantly. I assume they tried to handle it via hue lights before and it did not work for some reason. Just a hunch tho
I guess it depends on the routers nearby 🤷♂️. Everything else has paired instantly
I have Aqara smart socket with energy metering; in ZHA, for the instant power I get regular values, but the "smartenergy_metering summation_delivered" only changes when I query it manually. Any idea what is wrong and how to fix that?
So in the end, the result looks like this:
https://i.imgur.com/fV6S3iR.png
xiaomi tends to pair to the first thing it can talk to regardless of if its a good idea, and never updates who it talks to. So it can be hit an miss
picked up sonoff 3.0 dongle but nothing will pair. I guess I'll try a different cable
No go with a different cable. I do see a few warnings and an error in the logs.
What are the warnings and the error?
Received an unhandled command: SYS.ResetInd.Callback(Reason=<ResetReason.PowerUp: 0>, TransportRev=2, ProductId=1, MajorRel=2, MinorRel=7, MaintRel=1)
No response to command 0x0002
The first one's normal
Then the error is a webscket python stack track with http connection in components/zha/api.py:237
Can't say what the second is without context but probably not an issue either
I haven't tried plugging it into the server without an extension cable. I guess I could try that.
I basically get to step 6 with no issues. https://sonoff.tech/product-review/zigbee-3-0-usb-dongle-plus/
What device are you trying to join?
Currently I just have a s31 zb lite plug
I also tried some aqara temp sensors earlier
Hmm. If you still can't join devices after a few more attempts, try running an energy scan (https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#energy-scan, see the setup instructions at the top of the page) and post the results.
Okay I'll give it a go
The good news about these problems is at least I'm learning more about python.
I've been wanting to for a now but this is forcing me down that path
Made it pretty far through pip install zigpy-znp but it crashed hard
Can you upload the traceback to a pastebin (e.g. https://dpaste.org/ )?
Oh it's missing gcc
Take 2
Are you in the Home Assistant docker container?
yeah
You don't need to install anything in there, zigpy-znp is already installed
oh okay
Those other instructions are only if you're installing it in a different environment
Just disable the ZHA integration and the scan should run. You're not the first to complain about devices being unable to join the Sonoff CC2652's network so either it's just coincidence or there may be an issue somewhere
I have ZHA disabled, but (excuse my denseness here) how do I actually run zygpy-znp. It doesn't seem to be recognized as a command
python -m zigpy_znp.tools.energy_scan /dev/serial/by-id/some-id
Okay got it
This look right? /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_442b892eb293eb11a2201b4f3d98b6d1-if00-port0
Is ZHA disabled? It doesn't seem to be able to access the serial port
It is. Let me restart the container
The tool, I mean. The serial port can only have one application access it so if ZHA is running then other things won't
Yeah, I disabled the integration
Strange. Maybe try re-plugging the stick and run it again with -v for more verbose output?
Okay I removed it and restarted homeassistant and it looks like it's moving
ah weird, it got further but same crash. I'll go try to replug it. https://dpaste.org/ytZ5
It's the same code in either case so if it worked with ZHA then it should work here. Try deleting the ZHA integration then if you haven't added any devices.
ZHA deleted, replugged dongle directly into server, used -v and I get more feedback but I run into that same error. https://dpaste.org/bjWs
Hmm, the stick definitely shouldn't be failing to respond to Sending request: SYS.Version.Req()
It fails even earlier that time. Very strange.
I wonder if it's some weird hardware incompatibility. It's on a dl380
I guess I could try another usb port
Try switching it from a 2.0 to a 3.0 (or vice versa)
That USB-serial chip is pretty decent so it shouldn't be randomly breaking like this
This is a g6 or g7 so it may only have 2.0
I had a conbee2 using this same port prior. I was able to add devices to it but the aqara sensors were going unavailable all the time. The plugs were working great though.
Oh this accepts -vv too
If a different port doesn't help, the only other thing I can think of is upgrading the firmware on the stick from the 20210120 release to the newest Z-Stack build (20210708): https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20210708.zip
Probably not a terrible idea anyway
Okay I've got the firmware, any guides on updating?
If you're in the HA docker container, you can install the flashing script: pip install https://github.com/JelmerT/cc2538-bsl/archive/refs/heads/master.tar.gz intelhex
Hmm, looks like that doesn't work any more. You might have to do it directly via git: pip install intelhex git+https://github.com/JelmerT/cc2538-bsl
And then you can flash it with cc2538-bsl.py -evw -p /dev/serial/... /path/to/firmware.hex. I'm not sure if the Sonoff stick has some sort of button you need to hold down while inserting it to get into the bootloader, or if they have that working with software.
I didn't see any buttons on the device but I'll take another peek
Looks like it's software
Flashing new firmware will erase NVRAM but since you had no devices on your network, that shouldn't make a difference. Once you re-add the ZHA integration (or run python -m zigpy_znp.tools.form_network -v /dev/...), it'll form a new one.
It's in the .zip file I linked to above, in the Zigbee2MQTT Z-Stack build repo
Yeah I'm confusing myself. I downloaded it locally, not on the server. heeh
unzip fails with "Short read"
Let me see if I can unzip it locally
Not sure if the HA docker container has curl or wget but the .zip file you can download if you copy the View raw link
Otherwise GitHub send an HTML response
It has wget
Yeah you're right it's html
Man did I get a dud? https://dpaste.org/nuA6
Maybe the Sonoff stick needs a few extra options to get it into the bootloader with that script
There appears to be a BOOT button on the board inside of the case (https://community-assets.home-assistant.io/original/3X/f/2/f2957a8b43d5551f9a113f850d6d599a609dbde2.jpeg), maybe you have to hold it down when plugging it in?
interesting. Let me see if I can pop it open easy enough
okay I'm in. Here goes
okay I don't have the firmware updated, but I did get the energy scan to run on another box
Looks like a faint WiFi network on channel 11 is all that's around
Or the radio's receiver is not working very well
It looks like my 802.11 AP is on channel 11 for 2.4
A few tuya devices on that network
I could force it to another channel
The Wifi network is the peak near Zigbee 22 and your Zigbee network is on channel 15
So no channel congestion there at all
Actually that is surprisingly quiet
I can get my ZZH coordinator to display an energy scan that looks like this if I unscrew the antenna
My house is fairly far from my neighbors
Should I do another scan with antenna removed?
I don't see why not, hopefully it looks different
ha 0.00% for everything
For comparison, here's mine with a strong 2.4GHz AP on channel 1 (shows up as the peak around 12/13) about 20 feet away: https://dpaste.org/NDUy
That might be why. Sonoff's stick has a custom antenna design and their last attempt at a stick (different chip) suffered from RF defects that made it "not work" in a similar way
But if your stick is in a basement and you're far from other potential 2.4GHz RF sources, maybe that scan is normal. Mine's done in a very different environment.
If you were able to get the energy scan tool to run on a different box but not on your HA server, that may also be a problem. Maybe the SiLabs CP2102N has compatibility issues with whatever hypervisor you're using.
Yeah I'm wondering about that. There's not really any other way to expose it to HA is there?
I'm trying some of these other zigpy_znp commands and getting 2021-11-03 23:20:03.169 docker zigpy_znp.api WARNING Received an unhandled command: SYS.ResetInd.Callback(Reason=<ResetReason.PowerUp: 0>, TransportRev=2, ProductId=1, MajorRel=2, MinorRel=7, MaintRel=1)
And then they bomb
Those are just a minor startup "bug", it's the first thing the radio sends when it is plugged in or reset. If anything after that runs (with -v you can see), everything is working.
You can install ser2net or socat on a different box and expose a serial port over your network. socket://ip.addr:port will work as a valid serial port path in both the CLI tools and in ZHA itself when you set it up.
Though usually hypervisor serial problems are with the cheap CH340 chip, not the Silicon Labs CP2102N
Well I think I'll call it a night. You have been a tremendous help and a wealth of knowledge. I really appreciate it. I think tomorrow I'll work on this firmware a bit more just to see if I can eliminate that from the equation and if not I can try one of these serial over network tricks
No problem. Let me know if you do end up getting it working, I'm sure others with similar hardware configurations will be receiving their Sonoff sticks shortly and have the same issue.
Yeah will do. Should I send you a direct message if I get it working?
Oh you're the package maintainer! You just merged my PR haha
You can just @ me on here, that way it's more visible
I have a problem after my hassio migration from rpi3 to rpi4. Everything was restored from the backup... however the ZHA is not connecting at all. I'm a newbie here can someone help me with this 🙂
love me some zig🅱️
@austere patio I did get the new firmware installed and I formed a new network, energy scan, etc. worked fine. But ZHA has the same issue unable to see any devices. Now I'm going to bed for real. Going to be a zombie tomorrow. 🙂 If you're interested, I'll mail you this sonoff dongle if you want to try it.
Hello all!
Question:
I am going to install Home assistant on my NUC. I already have a conbee II stick. Till now I always used the ZHA integration for connecting my lights. Before that I tried the Deconz integration but I didn’t understand that because I was a beginner at that point. The problem I had then was that, if I connected a motion sensor to conbee I couldn’t find the device in my device list in HA.
Because I want to create a new clean home assistant in my home I want to know what config works the best.
Long story short: deconz or ZHA? And why?
Thanks.
See the 6th pinned post.
TL/DR: The real question is Zigbee2MQTT or ZHA?
Hello, I have added a group to zigbee2mqtt, I tested the group directly through mqtt and the group works. I have the problem, that the group is not added to Home Assistant. Why? Do I need to add it manually?
What version of Z2M are you on?
Since ikea broke binding to groups in their latest firmware for on/off button.
Directly binding to devices are limited to 6 devices max. I got 8 lights...
Have anyone found a workaround?
(Except for the obvious, doing a automation in HA)
Downgrade is not possible AFAIK?
1.19.1
oh man, thank you
Thanks. I just read the post. Can’t really say how to choose. I want a stable connection with a lot of supported devices. I am having some troubles understanding it all because of my lack of knowledge 😅
ZHA is slightly easier to set up than Zigbee2mqtt. Zigbee2mqtt keeps running while Home Assistant is restarting.
It's not hard to try both and see which you prefer.
My usual suggestion is that if you only use a single Home Assistant install and want something you can just forget about, use ZHA. If you want to use your mesh from multiple HA installs, or other software, want more flexibility, or otherwise like to fiddle with stuff then Zigbee2MQTT is the "better" solution
Hello! Seemingly after my update to 2021.11.0 this morning I can't seem to add any new devices with zha... I have tried four devices so far. 2 that needed to be readded and two brand new. Has anyone run into this?
I'm on 2021.10.6, I have Innr SP 234 plugs with power monitoring. The manufacture confirmed that attribute "ac_power_divisor (id: 0x0605)" is incorrectly set to "10" instead of "1". I can see this attribute in cluster "ElectricalMeasurement" and GET ATTRIBUTE returns "10". I change the 10 to a 1 and click SET ATTRIBUTE but nothing changes. Clicking GET again still returns "10". I assume I'm doing something wrong.
Thanks for replying! Going to do some more research about zigbee2mqtt. I prefer flexibility, a bit more time installing is oké for me.
I just installed two sengled zigbee bulbs but zha is saying they are end devices not routers. I thought all mains powered are routers
I need to find a Zigbee-based light for an alert system, does anyone know of a manufacturer that produces this?
Any bulb can be used tbh
What if we didn't have a light-bulb female adapter outside the door?
put one in I guess
Not doing that
Well....I guess your SOL. Im not sure of any zigbee "light" that does what you want. Which im still not sure what that is
When looking at the ZHA visualization, what do the numbers connecting the nodes mean? Is that the equivalent of signal strength?
Yeah I really need one that is battery-powered but it would need to last for a longer duration. I'll keep looking.
I really dont think that exists tbh. It might have to be a crazy DIY solution with a big battery
Would be easy to make with esphome / tasmots and a single or multiple ws2812 leds
I use such a solution for my daughter's nightlight
Red when to go back to sleep, green when she can get up
Man thats a good idea actually
especially for when the kid is in timeout in his room lol
@jolly narwhal mains-powered?
Understood
I 3d printed an enclosure
And stuck the single led on the outside
Then just plug it into the wall
And it's behind her bed, so lights up the wall
The ZCL spec says that this attribute is only readable and reportable, not writable. You probably need to write a quick so that ZHA "fixes" the device locally if the manufacturer doesn't want to provide an OTA update.
@austere patio - thanks for the link, was trying to figure out if they are read only or not. I'll see what I can do with the link you provided.
There's probably no defined constant for that attribute so you can make a custom cluster with _CONSTANT_ATTRIBUTES = {0x0605: 1} to override it
I was able to downgrade some IKEA lights by removing the version number check in zigpy and "updating" the device. What integration are you using?
its zha/zigpy, thought they didnt allow downgrade,
Zigpy will refuse to send the image but if you comment out the check (https://github.com/zigpy/zigpy/blob/dev/zigpy/ota/__init__.py#L60), it will. It's possible that your device will accept the image, or it'll reject it at the very end.
I'll try downgrading one of my unused IKEA dimmers because I've only ever tried it with bulbs and switches and those all worked
ok will try imminently ! thanks for the tips
@austere patio
[0x5d87:1:0x0019] OTA query_next_image handler for 'IKEA of Sweden TRADFRI on/off switch': field_control=1, manufacture_id=4476, image_type=4549, current_file_version=587699761, hardware_version=1
Fixing IKEA OTA image with trailing data (1000 bytes)
[0x5d87:1:0x0019] OTA image version: 570492465, size: 179838. Update needed: False
think i need to patch the code a bit more
Did you just comment out those two lines? That should be enough
i did. but added some debug now
Is the hardware version different?
Because my dimmer is 96% updated and I changed only those two lines
its the same on/off button, it was updated some days ago with ota.
im running via HA, it seems doing a "reload" on zigbee integeration makes it reload the code. but could you confirm thats enough @austere patio ?
Not 100% sure, I always restart
ok will try that
Maybe you have to delete the __pycache__ folder or something
restart core?
That sounds right. My dimmer downgraded a major version from 2.something to 1.2.
ok did seems to do the trick, because now i got a stracktrace because i tried adding debuging 🙂
restarting again and we will see
that worked, thanks @austere patio . pretty sure i read downgrades werent possible.. oh well
It might be device dependent. At the end of the OTA process you'll see what the device decided to do with the image.
But so far 3 out of 3 IKEA devices downgraded for me
Click the buttons, it should speed it up
why are you downgrading the ikea onoff? With the update it no longer broadcasts actions, it talks directly to the coordinator 👏
same with the shortcut button, and it even got a double press command
Only other thing I can think to try is to run HA core on another computer to figure out for sure if it's the $10 stick? If you're playing around with learning Python, you can quickly install and run HA as a regular Python package in any non-Windows virtualenv with pip install homeassistant && hass --verbose. Or create a new VM.
Might have to create a config file with just frontend: in it to get the web UI to install and show up
I will try that.
If I was able to use energy scan from within docker that should 100% tell us the device is passing through to docker correctly right?
Yeah, if that runs the device is functional. Only thing I can think of is there being some RF problem. Or you're having bad luck joining stuff, but since you've previously done it with a Conbee I don't think that's the case.
I should be able to plug the conbee in, adjust the serial path and run the same energy scan right?
Not with the Conbee, no
Those tools are specific to TI radios. Conbee doesn't have anything similar at the moment.
Got it. I was wondering about that.
Almost have my 2nd machine setup
This will be bare metal no docker
Because it can't bind to device groups anymore. And it binds to Max 6 devices. And I got 8 lights 🙂
Binding , never saw a use for it
Hello all,
I;m trying to add zigbeetomqtt.
Already installed the broker. Created an user an linked it to the broker.
No i'm trying to install zigbeetomqtt and entered my username and password of the user.
Getting this waring:
@warm totem posted a code wall, it is moved here --> https://hastebin.com/ubomuwanid
@austere patio so that took until now kinda... and it seemed it failed because when it was done it started doing update again, which might be the outcommented codes fault. but checking sw_build_id says its the newest firmware still 😦
Darn. The only other way to downgrade it is with a programmer, unfortunately: https://github.com/zigpy/zigpy/discussions/660
Hello
I used to have the standard zigbee integration, basically with the lidl gateway (https://paulbanks.org/projects/lidl-zigbee/) and a sonoff zigbee and that worked. But then I switched to zigbee2mqtt and it doesn't see the sonoff anymore. Also, trying to add some xiaomi battery devices doesn't seem to work. I get something like device "Not supported." What is the issue here?
Good evening. I've got a couple of TERNCY-SD01 switches and have problems getting angle reports from them via deconz? I just get the event ids for rotation, but I don't seem to get angle state reports.
@austere patio it says there that downgrade is not possible with ota.
Do you happen to know if a ST-LINK will work for flashing? Seems it supports swd and I'm looking to buy one either way
I don't think so but you can reflash the ST-Link with different firmware (BMP?) to make it compatible with OpenOCD. I'd ask MattWestb over on that GitHub discussion, he's way more knowledgeable about this stuff.
Thanks will do
So, I have the following item: https://zigbee.blakadder.com/Moes_ZS-SR4-2169.html I am usaing ZHA, and when I add the device, all it creates are 4 switch entties that do nothing (and a power entity) and NOTHING comes by listening to ZHA_EVENT events. Think someone can help me with this?
It apparently has been "confirmed" to work with ZHA... But it doesn't
I'm assuming by "when I add the device" you tried more than once?
just wondering if it misidentified during pairing or something odd
Yes, I tried deleting it and re-adding it, I thought of that.
very odd, I would expect it to be an event only type device jsut looking at it
Thats what my sonoff buttons are.. Thats how I knew about it.. But these show up differnt.. At least the one I paired did.. I could try and pair another and see what happens.
Second device did the same thing. I have 4 switches, and they do nothing when I press the buttons.
So, no ideas?
What is the best zigbee gateway device to use with homeassistant?
Are you listening to ZHA_EVENT or zha_event?
There's really no "best," but a CC2652-based adapter (ZZH, sonoff zigbee 3.0 dongle plus, etc.) is a solid choice
I am using this https://paulbanks.org/projects/lidl-zigbee/ at the moment. Anybody has feedback about it?
@lilac wharfzha_event I know I am using the right one, cause my Sonoff buttons send an event. When I di't get one form the Moes remote, I press a button to be sure.
Well, if anyone has any suggestions, please don't hesitate to hit me up. I am kinda at a standstill here with 3 at this point useless devices.
I have multiple zigbee devices, my question is specifically about a hue wall switch module. One of these is draining incredibly rapidly (installed yesterday, down to 20% today), it's the one marked as Kitchen 2G switch on the map. https://i.imgur.com/B5MS6Of.png What could be a reason for this device to drain so quickly?
@remote wagonAlthough I am not an expert specifically at Zigbee stuff, I can think of 2 things. First off, I have had a device report "funny" power remaining once. I just left it for a few days and it corrected itself. 2nd, perhaps it has a bad battery? If it does actually die and not repair itself, I would replace the battery and see if it drains again. That will tell you if its the device, or if you just had a faulty battery.
Cheers, I'll keep that in mind.
You might have no use for this, but the philips hue wall modules first required me to tell them what kind of button they were before they started sending events. Maybe something similar is going on with yours?
Maybe. How did you tell HA "What kind: of button it was?
Ah, okay, I am using ZHA
Yeah, I'm not sure if there is something similar for that or why it appears (I assume the device exposes the config, hence the name.)
Well, as I have said, I don't know a lot about it. I have poked around a bit in settings, even tried clicking "Reconfigure device" in HA, but it seems to do nothing.
What confuses me about https://zigbee.blakadder.com/Moes_ZS-SR4-2169.html is how the Zigbee ID is listed as TS0044 which is a 4 button tuya wallpiece.
Yep, thats what I got.
Perhaps they use the same internals. That said, maybe looking for Tuys TS0044 ZHA posts can help out?
Unfortunatly the information seems to be well beyond my understanding.
I'm afraid I won't be much more help then. Perhaps someone with more ZHA experience can help you out.
I was hoping so, but they seem to be busy this evening, lol
Looks like I might need to upgrade my HA... I have been avoiding that for fear something will break. I am quite a few versions behind.
You could ask around for stuff to look out for in the general chats. But I've not had any issues.
- Make a backup.
- Try
- Recover or rejoice!
Thats the plan. Its running on a VM, so I will create a snapshot and upgrade a guess.. Any idea hwo long an upgrade usually takes?
I'm running what is (used to be?) called HassOS on the pi. Doing a HA only upgrade takes under ten minutes (much less but I didn't measure it)
Full updates of the OS (including underlying packages) will take longer.
Yea. The thing with information like "longer" is 1 hour is longer then 10 min.. 1 week is also longer then 10 min... Without this information I don't know when to stop everything and say "something is wrong."
3 something I think... If that makes any sence
Is your VM running Hass OS?
That's earlier this year.
You should really ask around in the core channels as we're going massively off-topic here. But for half a year's worth I'd go with less than an hour on a pi. So if your VM is well specced (and internet allows) start asking further questions after half an hour..
And should the OS be updates before the core? Or visa versa?
Pinged you in the hassOS channel to move it out of here :p
Apparently from what I am seing, it doesn't matter, lol
Thanks, but no one has said bo in there in hours.. Besides, updating the OS may fix my Zigbee issue... Meaning it is kinda related here.. Anyway, I have started upgrading, wish me luck.
Updating home assistant dealt with it!!
can ZHA somehow poll attributes from a device regularly? I have an Aqara smart socket with metering, but apparently it does not send the smartenergy_metering summation_delivered by itself, only when queried ...
any recommendations for decent zigbee door/window sensors?
aqara
i was just looking... apparently the newer revision (MCCGQ14LM?) doesnt work properly yet
then don't buy the E1 revision until it is supported
not all sellers seem to label things properly though.. but ill try
they label E1 prominently since its new
i assume the CR1632 is replaceable?
yes and it'll last you a few years
Mine have lasted 2.5 years so far
most of my sonoff ones seem ok.. but the front door one goes flat pretty quick
i have the pill shaped mi one that's a doorbell and still haven't changed a battery
sonoff is definitely not ok
but i have like 1000 kids who open/close the door an infinite amount of times per day
max 6 months on any sonoff apart from the button
not as good as aqara
and the motion sensors seem ok
button is horribly designed though
i previously had to use sonoff stuff, as i was using their zigbee bridge
sonoff firmware tends to be unreliable on the motion sensor
but now i have the Zigbee Dongle Plus thing, and im using ZHA
are these the right ones?
yes, they have the old logo
how about temp/humidity? aqara also?
if you need to ask its aqara
im a fan of xiaomi stuff, so thats ok lol
not the same but thats ok
well, they are related, no?
sometimes
sometimes random things get labelled as "xiaomi"
a more proper label would be Mijia which is similar to Tuya
You in the US?
Australia
Ah, damn
I was going to suggest these: https://www.ebay.com/itm/Lot-of-10-XFINITY-Security-Visonic-XHS2-TY-MCT-350-SMA-ZigBee-Door-Window-Sensor-/203254885008
if i look them up on eBay.com.au they come to ~$87AUD for 5
$136AUD for 10
robbery. lol
Damn lol
The mijia switch is awesome. https://m.gearbest.com/smart-light-bulb/pp_257679.html. Sonoff button is really bad.
it is terribad
which is terribad?
Seem to have my temperature devices falling over every morning at around 6.30 am ... a HA restart required to get them working again. Any reason why this would be? Am running ZHA with a Sonoff Zigbee Bridge with Tasmota ...
If it's only specific devices, see where they're located and what parent router they've chosen. If they "disconnect", they would have been offline for I believe four hours.
Hmm, it's connecting to an IKEA bulb. That looks fairly stable.
I was having that same problem with conbee2. After a few hours I'd just lose all the aqara temp sensors. Restarting HA brought them back.
I don't understand why restarting HA makes a difference. It's like they've failed some keepalive and don't bother to restart checking after some amount of time
Or maybe HA does some initialization on the conbee that restarts communication?
Anyone using the Terncy SD01 with deCONZ? I don't seem to get any state updates for them, just the event ids.
Is this the correct room to ask a Grafana question?
@dense spindle #analytics-archived
I'm confused why you would think #zigbee-archived is the right channel 😄
I thought I was there. Didn't realize I was in the zigbee channel
I'm running into an issue where most (but not all) of my Zigbee devices are showing 'unavailable' for their battery sensor only, while the rest of the device works as expected (door open/close, motion, etc). Seemed to have happed recently, tried rebooting everything HA, repeaters, reconfigure device, etc to no avail. Any thoughts on why a variety of sensors may have issues reporting battery state while rest of works as before? I'm on latest HA, using ZHA with Conbee II on Linux VM running HassOS.
Thanks @tropic depot - That looks like my issue exacly.
Restoring back 2021.10.7 restored this functionality, consistent with issue 59021.
I experienced that bug during the beta and thought it was just one of my sensors being weird again lol
lol yeah, i actually spent a few hours troubleshooting before coming to the channel... thought I had caused the issue on my end with some other changes 🙂
I have the Aqara temp sensors with z2m. Is there a way to see the history of the temp?
HA's built-in history
Did anyone else's HA nuke network options after the 21.11 update?
Transition time, unavailable after etc
Before they were all filled out now they are all empty
This guy had the same problem I did with sonoff 3.0 dongle. Nothing will pair. https://notenoughtech.com/home-automation/sonoff-zigbee-3-0-usb-dongle-plus/
Others with the same issue. https://www.reddit.com/r/Not_Enough_Tech/comments/q2vfq4/getting_started_with_sonoff_zigbee_30_usb_dongle/
works for me
No issues for me either
works just fine for me too
one thing I'm seeing a lot is that people flashed latest firmware onto it, which on my other stick had pairing issues too
What firmware is working then?
stock
