#zigbee-archived
1 messages ยท Page 139 of 1
yeah that's what I read
However, I found that some devices don't like some sticks... like Terncy devices won't pair with my ZZH stick
bugger
There's a handful of posts about that particular combo on the Z2M GitHub
I've tried 3 different types of Terncy devices, none work so far ๐
Crap so while this device might well be supported by Z2M, it simply might not like the zzh?
Possibly, but you've been very vague on what "this device" is
Have you checked the GitHub to see if anybody has posted about it?
though interestingly that says NAS-AB02B0 and my box just says NAS-AB02
yeah couldn't find anything about not being able to pair it in the Z2M GH discussions. just people trying to get the attributes supported etc
turned on the zigbee-herdsman debugging but entirely what I'm seeing ๐
Ok cool stuff with the G2H. I upgraded the firmware to 2.1.1 and did the "hostname" trick
now I can connect over MQTT to the zigbee hub inside the Aqara G2H
https://github.com/mcchas/g2h-camera-mods check this repo
Scroll all the way down to tl;dr
Using telnet I found a file zigbeeAgent.conf
chip -> nxp:jn5169\jn5189; silicon:efr32mg
chip : jn5189
#nxp cfg
nxp_uart : /dev/ttyS2
save data path -> /data/zigbee/
dataPath : /mnt/config/zigbee/
log cfg file -> /data/zigbee/zigbeeLog.conf
logPath : /mnt/config/zigbeeLog.conf
pin cfg, pin,low/hight,in/out
pinReset : 63,low,out
pinIsp : 18,low,out
So they use a NXP JN5189 like in the Zigate+ USB stick
are there 'better' coordinators than the zzh that are known to work with more devices? or am I just unlucky and should accept this siren is a paperweight ๐
If it's not pairing, it's probably not the coordinator.
z2m model numbers are not always the same as written on the label/box
Oh there's a G2H hack
Hmm maybe this thing only works with Tuya hubs. I thought Zigbee didn't care
Zigbee shouldn't but there may be firmware issues with the latest TI 3.0 firmware 
Trouble is, some of that is a black box, so if TI broke something... nothing anybody can do
๐ฆ
I guess I'll have a look for another siren
or I keep zwave running just for that, and find something else to act as a powered zigbee repeater
Yeah I'm using the latest HA and the latest zigbee firmware I believe and it's still an issue, but other people said it's solved for them. They are also connecting though routers
Just have to give a quick shoutout to zzh and the zigpy-znp, my zigbee network is very very smooth now ๐
2021-05-28T15:28:37.611Z zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - mgmtPermitJoinReq - {"addrmode":15,"dstaddr":65532,"duration":254,"tcsignificance":0} 2021-05-28T15:28:37.611Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,54,15,252,255,254,0,228] 2021-05-28T15:28:37.620Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,54,0,82,254,3,69,182,0,0,0,240] 2021-05-28T15:28:37.620Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,54,0,82,254,3,69,182,0,0,0,240] 2021-05-28T15:28:37.620Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 54 - [0] - 82 2021-05-28T15:28:37.620Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - mgmtPermitJoinReq - {"status":0} 2021-05-28T15:28:37.620Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,3,69,182,0,0,0,240] 2021-05-28T15:28:37.620Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 2 - 5 - 182 - [0,0,0] - 240 2021-05-28T15:28:37.621Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - mgmtPermitJoinRsp - {"srcaddr":0,"status":0}
is that something attempting to join my network?
Just says you permitted joins in a very verbose way
oh. was wondering if it at least showed the siren was talking to the zzh. I guess not
I guess I'm out of ideas
What channel is your network on?
Z2M should be on 11 by default. Maybe the siren only joins on 15/20/25
I think if you back up the Z2M data folder with the coordinator backup stuff and then change the channel and PAN ID to temporarily form a new network to test on
what's the PAN ID?
It's like the name of your network
On the other hand, I think Z2M hasn't yet released the network formation refactor so you won't be able to migrate back without unscrewing the antenna or shutting off other routers
So depending on how much effort you want to put into this, it's definitely possible to temporarily have your coordinator switch to a new channel without affecting your old network ๐
Or you can just change it and see what happens. Many routers find the network on a new channel after a power cycle, I haven't had as much luck with sensors.
so I could shut down the z2m container. create a new data dir with a different channel in the config, and spin the container back up using that 2nd data dir. Test pairing. If it doesn't work, shut down the container, move my old datadir back again, and spin container up again
and I'm back to where I am now
?
Yeah, that should work. Make sure to change the pan_id as well.
When you switch back, unscrew the antenna of your ZZH
what does that do?
Then screw it back on after Z2M starts up
Z2M will ask the ZZH to form a "new" network with your old settings but since existing routers already are up, it'll think it's colliding with another network
I've read about MQTT and I still don't know why exactly I would need it
It's just made to be independent of Home Assistant, that's about it
So instead of using the ZHA, you can use something external instead?
Z2M its its own thing. ZHA is a Home Assistant component and is built into HA.
If I'm using a RaspberryPi + Conbee II + ZHA, I don't actually need MQTT?
ZHA doesn't use MQTT at all
Zigbee2MQTT requires a MQTT broker, which is its own thing that other integrations can be using
Think of MQTT as a separate messaging system you can use to run lots of different things into to get them all into home assistant
If you don't want to use it just use ZHA
Hmm this siren, which is Neo Coolcam, also seems to be marketed as Tuya. And on the Tuya zigbee helppage it says 'Whether the Zigbee gateway used is our brand. It is because Zigbee gateways of other brands are not compatible with our Zigbee devices due to some private protocols, which may be added but not controlled.'
That seems to be implying that Tuya stuff only works with a Tuya hub
That's a protocol-level thing they intentionally screwed up
Their stuff works, it just requires explicit handling based on the model and manufacturer name
Ah ok
It has to join your network first
And if you get no messages at all then it's not even trying
I'm just gearing myself to potentially screw things up more ๐
ok I'm up on a new channel
Which one?
Is the device itself trying?
it boots up with the lights constantly flashing
which is supposed to be pairing mode
and reset is hold the button down for 5s
which I do, then it beeps, then it goes back to flashing again
so I think it's trying
I could restart on 20 then 25
Hmm. Without a sniffer and a Tuya gateway, it's hard to tell why it's not even trying to connect
Maybe it expects a specific pan ID or a epid prefix or something
Cuz before joining there's not much to distinguish networks
not sure. unless my model is subtly different people have got these to pair
In that case yeah, maybe check if there are specific pairing instructions
no instructions on z2m docs
tried 20. nothing
nothing on 25 either
I guess I'll try and put things back to how they were
Look for _TZE200_d0yu2xgi on Google, that's its model name
that was an issue for not being able to pair. but at least they were seeing something in the logs
I don't see anything
Yeah, probably not a channel thing. Yours doesn't seem to be in joining mode even though lights are flashing.
maybe it's duff
right if I boot up on my old config I need to unscrew the antenna first ?
Yeah
Once Z2M starts up you can just screw it back on
If that doesn't work you'll need a metal pot ๐
oh god
Instructions for a WiFi version seem to indicate there's a reset button in the battery compartment
No, if you backed up the Z2M data folder it should restore the coordinator backup
well I just fired the container back up pointing at my original dir
And the device database stores all of the known devices
nothing seems to be in there though
As in the data directory is empty?
no all my original files are in there
including coordinator_backup and the configuration.yaml with the devices listed
And the database.db file?
yup
I'm seeing stuff like
2021-05-28T17:14:54.993Z zigbee-herdsman:controller:log 'zcl' data is from unknown device with address '20070', skipping...
Hmm
Well, the network is up, it just seems like some devices decided to change their addressesย a little. If you permit joins and power cycle the device it might work. Dunno, I don't know how Z2M handles that stuff.
Pulling the battery should cause it to re-announce
If you're permitting joins at the same time Z2M should pick it up
2021-05-28T17:19:43.827Z zigbee-herdsman:controller:log Received 'zcl' data '{"frame":{"Header":{"frameControl":{"frameType":0,"manufacturerSpecific":true,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":0,"manufacturerCode":4447,"commandIdentifier":10},"Payload":[{"attrId":5,"dataType":66,"attrData":"lumi.sensor_magnet.aq2"},{"attrId":65281,"dataType":66,"attrData":{"1":3025,"3":29,"4":5032,"5":7,"6":[0,0],"10":0,"100":1}}],"Command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}},"address":36512,"endpoint":1,"linkquality":141,"groupID":0,"wasBroadcast":false}'
2021-05-28T17:19:43.827Z zigbee-herdsman:controller:log 'zcl' data is from unknown device with address '36512', skipping...
I think it's seeing the messages but doesn't recognise them
put the sensor into pairing. z2m gave a red messages saying device had left, then green message showing it joining
and it;s come back with the friendly name set
so i probably just need to do that on all of them
Seems to be working ๐
That's the thing I'm holding down to reset it
oh well I'm back to where I was at least ๐
thanks for trying though @austere patio !
@rocky pawn posted a code wall, it is moved here --> https://paste.ubuntu.com/p/wsmgC5BXjZ/
Any clue what is wrong? I have Intel NUC with HassOS inside VM, was working just fine but right and now I can't connect to ConBeeII. Device was visible in Supervisor under deCONZ configuration but only before starting addon after it it's disappearing.
deCONZ Log: https://paste.ubuntu.com/p/2bJt6xpMBG/
EDIT: Solved by removing modemmanager - was disabled and yet made problems...
Sounds like a #330990055533576204 problem as usual
Actually, ModemManager is never seen there
Now... Supervised installs... there it's pretty common
Tinkerer... question for you (your post in integrations reminded me)... for your Gledopto bulbs, if you look in Z2M, do they update their last seen regularly in the UI?
Mine show 4 days ago... Yet... well, they work. LOL
They do, but ... I set them to report their power on/off state every 5 minutes
I do that for all bulbs, so that if things get out of sync they get back in sync again
Yeah, I have last_seen turned on which seems to be different from what the UI shows and it seems to only happen on my Gledopto and Hue bulbs. Where are you setting the 5 minute reporting?
Any bulbs - I haven't had to do it with sockets
The Tradfri bulbs in particular have had times when Z2M and HA think they turned off, but they didn't
Gotcha.
And of course I hit that UI bug where I can't edit things because of the auto-refresh lol
You can, you just have to be really fast 
lol
Still, maybe in the next release it'll be fixed ๐ค
I blame Ikea for outdated firmware
I'm glad I never bought bulbs from the same batch as everyone else
To be fair, I only have 13 Zigbee bulbs... all the rest are WiFi ๐คทโโ๏ธ
(forgot my light strips)
(forgot my Ikea Drivers too lol)

Well, I am quite excited.. I got a sonoff bridge, and got it all set up, with a single button (so far) but I think perhaps I am expecting something different then I am getting.. It doesn't appear to appear in lovelace..
Assuming ZHA- Buttons are stateless so they show as events. You can see them by going to the developer tools/events tab and in the listen area enter zha_event then click listen
If there is a quirk for it youโll likely have automation actions available for it if not you would need to use the event data for an automation
Ah, okay, I managed to see the event when I hit the button.. Awesome. This is kidna new to me... So now what do I do with it?
automate ๐
Thats like telling someone that has never seen a car "Just fix" I unfortunatly will need a LOT more information then that. Already been searching for hours. Nothing seems to be helping.
what are you trying to do? I guess my point was to use the button you'll need to use an automation to have it do something. so the button would be the trigger, for maybe a light or an outlet or a tts playback anything really. this starts getting off topic though for this channel and #automations-archived might be better.
Well, if I can be taught to make it do ANYTHING I can build from there. So far I am using input boolen for most of my automations.. as I use node red to do a lot of stuff. So if a button press could turn on an input boolean, that would work great
I don't use node-red, but I believe it can see events as well, so you could skip the input boolean.
but if you go into Configuration > Automations
and under trigger select Device, and your new button
if you get some defined actions it has device actions and you don't need to use the events in HA automations
if it doesn't (they need to be added for each device, so it's an uphill battle) you can use the event trigger
and in the data section, you'd copy in the data you see in the event when on the developer tools>events page.
One thing at a time. I get lost very easy.. I am at the action section. Action type is what?
I thought it would be device, but my "test1" input boulean wont' show up in the list
Yea, I think I may have found it..
and there are input_boolean turn on and off services
The things is.. The only thing it sees for this zigbee device is "Battery level changes"
OMG this is annowing, I can't paste it here.
okay, so that's what I meant by an uphill challenge. no one has contributed the code to add the actions for that device
So thats the next problem. What is trigger type. I managed to get action done.. I think.
so your trigger would be event.
then open another tab
go to the developer tools/events again and listen for zha_events
tap you button and get the event.
Okay, I see..
Now in event data. Can I just put a peice of it in there. Kidna likr a "Contains this"
I was looking for an example in my automations but I've been able to convert most away from events to the device actions. so haven't done it in a while.
give me a few. let me see if I can find an example.
Okay, thank you.
no images allowed here for most (spam prevention)
so that's a chunk of the data that came in from what ever button this was ๐คฃ
but key is to get part of the identifier
like ieee
OKay. Let me see if I can decypher/modify/etc to make it work for me.
and the part that differentiates the action on the button, like you should get different events for tap, double tap, hold, maybe release too.
(not sure what it supports)
Its still too big for me to decpher. What parts are manditory..
I assume the "Args" is manditory? But what else?
Or would it be easier to see my event?
I dunno what you mean use 3x` I was gonna use a pastebin
that works.
so I think it should work with just one of the id's and the command
So just put one of the IDs in the event data? Nothing else? Not the device_id nothign, just 00:12:4b:00:22๐ฟ81:cd
so like:```
unique_id: '00:12:4b:00:22:cd:81:cd:1:0x0006'
command: toggle
put that in the event data, and see if it works.
That did it!
so from the event you are getting an id for the button, and the command the button is sending..
if you had a second button it would send a same command but have a different id. so you just need enough of the event data to get what you want.
Yep, and I am seeing it. A push and hold send "off" Double press sends "on"
I got it now. Thank you!
some device will just have the device actions already, here's a smartthings button for example:
these are relatively new, and need to be added to each and every device as they all do things differently. so if they don't exist you got to do it the "old" way with the events.
I am just starting to learn these zigbee things. I just got to play with the hub today.
cool! good luck!
Those of you that have Philips Hue lights and use Z2M, are you still using their bridge? If so, is it limiting the functionality in any way or maybe the other way around?
if a device is connected to Z2M coordinator it cannot be connected to Hue bridge
Aha, that settles that then, thanks. Functionality wise? Will it limit anything?
that depends on the device
The hue bridge was fine
But zigbee2mqtt plus a cc1352 or 2652 will run circles around it
Great to hear, thanks. Trying to think in terms of redundancy, so this probably is a good thing, should the bridge fail...
I know Blakadder has a Zigbee list, but does anyone know of something that incorporates MSRP? As a cheapskate it would help a lot hahaha
@violet dagger I'd even be interested in doing manual data entry if this is something you could incorporate into your site
you do know prices change often right?
Yeah thatโs why I said MSRP, not itโs current sale price
Like, its release price
MSRP does not exist in china
Unless you count having MSRP at 100$ then being offered an 80% discount
Hi, is need some help to configure my RasBee v1 from Dresden Electronic on a Raspberry 3 with latest Homeassistant. It looks like I can not find the RaspBee
I'm having issues getting the SONOFF SNZB-01 to work, I have connected them and read through the forums and here. When I click the button, I am not able to receive a zha_event log, therefore I'm not able to get the buttons to work through automation. Any thoughts on this?
Zigbee Hub: Sonoff Zigbee Bridge flashed to Tasmota
Integration: ZHA
Hallo chat, trying to get Hass on ZigBee network without disturbing hive with cs2531 flashed with zigbee2mqtt router which I managed to pair with hive hub. Will that work? Or does it have to be coordinator and replace the hive hub or have two networks or something? I want to control ZigBee stuff locally without stopping hive cloud working which would annoy the wife lol. Any guides?
OK, got it, apparently my USB-C device did not deliver enough power to fire up the RaspBee. Changed Powersupply and it started working.
How would Z2M handle power on defaults, ie can it be configured not to turn off after a power loss?
Has anyone gotten those little ZM-RT201 to work with ZHA?
You need to modify the boot config to disable wifi/Bluetooth, which share the onboard serial port
Interested to hear this too
For some devices yes. ATM, I think only Hue and Ikea (and some derivatives like Gledopto) support power-on behaviors, but it seems to be hit and miss setting that up in the UI (but you can use MQTT/config file as a fallback).
That sound great. ๐ Would there be a setup instruction for zigbee2mqtt somewhere? I see a few different addon's, unsure which is the right one
Z2M itself? As a HA addon or standalone?
Hm. Standalone I would suppose.
https://www.zigbee2mqtt.io/getting_started/running_zigbee2mqtt.html is the best documentation you'll find on how to run/set it up.
I personally run mine bare-metal (as a systemd) service, but MANY people choose the docker approach.
I think I need read a bit before deciding, but baremetal sounds like the way to go I would guess, if not hugely more advanced
Thanks for the link!
Eh, they're about the same... Docker is "easier" in terms of provisioning and such... but I like bare-metal just because I'm old school Linux.
Ok, great. I'll have some reading to do! ๐
Let me know if you need help... Plus, there is a Z2M discord as well.
Docker all the way.
If something can be done easily in a container, it probably should be done in a container. Polluting your OS with random apps and their dependencies isn't a good idea, and containers add almost no overhead.
but muh PS2!!! ๐
tbf, if I didn't have 7-8 other services running in ps2/systemd (and I can't be bothered (read too lazy) to convert them over to containers), I'd be running the docker version.
I won't. It'll get it's own VM to thrive in... ๐
That's even worse. A whole VM for one app? That does have a ton of overhead.
Probably, but lot's easier than docker imho. Never got off on the right foot with that
Then learn.
A VM per app has got to be the most ridiculous way to do it.
You should meet my customers@dry fossil
Glad to be able to amuse you.. ๐
Yeah, no VM is ever easier than a docker container... and atx... I did say OS/2... ๐ Your reading skills are better than normal today lol
I have a customer who has 15 customer facing systems, with 15 windows VMs with iis, connected to 15 windows VMs with SQL servers and 15 management servers for those front facing servers
(waiting for atx to scroll up hahaha)
That's just disgusting. Hit them with rolled up newspapers and say firmly "NO! BAD CUSTOMER!"
Rub their noses in it...

can I somehow set z2mqtt to refresh a bulb status?
e.g. I sometimes turn off and on a bulb (it's the last hardware switch on my wall) and it fails to reports "on" in z2m after that.
zha usually recognized that...
Yes
You can configure the bulb to report the OnOff state, under the Reporting tab for the device in Z2M
Anyone got any idea why my Phoscon app all of a sudden would throw me an error url not found. the Deconz application works but the phoscon web app gives me a url not found or been moved error
deCONZ by dresden elektronik is a software that communicates with ConBee/RaspBee Zigbee gateways and exposes Zigbee devices that are connected to the gateway. Our #zigbee-archived channel is a good place to ask about using it with Home Assistant, but they also have their own Discord server.
They may know more over there
thx
Sorry if this is a stupid question but does the Sonoff ZigBee Bridge only communicate with ZigBee devices?
I've finished following a tutorial for flashing it with tasmota followed by the OTA firmware update and integrated to home assistant.
I haven't been able to add any wireless sensors or Sonoff switches. I'm assuming this is because I should have bought sensors which contain ZigBee in the description but would have thought a Sonoff bridge could additionally find Sonoff devices like light switches and smart plugs containing stock firmware.
Yes, it's just a bridge for Zigbee devices
Thanks
hi. I'm having trouble with Zigbee2MQTT. I'm trying to move our entire Hue setup to HA. But the problem is whenever I add a device with Zigbee2MQTT it only adds the basic entities, properties, etc. E.g. I add a Hue Dimmer, and it sees nothing but the link quality and battery status, then if I want it to see the buttons I have to push each button individually, until then the entities don't exist, and if they do they don't have the right automation events etc. The problem is I can't even do this for lights, so I add a light bulb, and the only thing it is showing up wiht is link quality, "update_available" and "update_state". I don't have the actual light entities, and I can't even use the trick I used with the dimmer here?
If you followed the docs and set up MQTT Discovery in HA (either in the UI or in YAML, not both) and configured Z2M for HA support, it should all just work
If you set up MQTT in YAML and the UI then things don't work right any more 
I don't understand how it can work but not see the entities?
Well, did you set up MQTT in the UI, or in YAML, or both?
what configuration? I am just using mosquitto broker?
HA needs to be configured for MQTT Discovery
That can be done either in YAML, or the UI
How did you set up MQTT?
I don't understand? What config
but I have the mosquitto broker add on, that link is for running your own broker externally?
The add-on is the broker itself
You still need to configure HA to talk to the broker, that's what the integration does
then how does it still work? E.g. I can use devices like the dimmer just fine
I'm asking you how you've configured it...
I don't know what you mean
Then... there's not much more I can do here
what configuration? The one in configurations.yaml?

What do the digits on the lines between devices In the topology visualisation screen of the Zigbee Home Integration mean?
It looks like zigbee2mqtt is exposing the lights, but HA is only picking them up once they change? https://pastebin.com/bp9rA0DZ
It's the link quality between two devices
If both devices report the link quality to one another (i.e. A -> B and B -> A), both are displayed
Thanks, that makes sense. Do you know what is the maximum for these values? Are these in percent?
255
There's really no consistent, standard range for them because each vendor can choose how it's calculated. I wouldn't worry about the values themselves.
could someone please try and help me with my zigbee2mqtt problem?
I bought these Zigbee lights and added them to HA, but I'm not able to control them. If I toggle them off in the UI, the bulb stays on, and the toggle switches itself back on after a few seconds
https://www.homedepot.com/p/EcoSmart-65-Watt-Equivalent-BR30-Dimmable-Smart-Wireless-LED-Light-Bulb-Tunable-White-2-Pack-A9BR3065WESDZ02/309683614
My Zigbee network?
Yes
ZHA doesn't show any erorrs with the entities
It won't until the bulb doesn't respond for like an hour, I believe
Visualization map shows it's there, but there's no line connecting it to the coordinator
Were you ever able to control it?
No, I just bought 6 of them
In that case just re-join it to your network
I've tried removing them from HA, resetting the bulbs, and adding them back
Did the bulbs reset? I believe they flash once or twice
Yeah they flashed and went to full brightness
When they get added to HA, they dim to like 5%
So when you add them back, do they join the network?
A lot of stuff should appear in the joining log tab
Where's that?
I believe on the top right of the screen that shows when you're joining a device (with the spinner)
Let me try doing it again
Those bulbs work fine so they likely just never joined your network after you reset it
Oh yep you're right
After they finished setting up, they all leave the network
Or actually
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
Device 0xae48 (cc:cc:cc:ff:fe:e9:83:41) left the network
One device leaves the network like 20 times?
Devices only indicate that they leave once they have the network key
And some messages are sent a bunch of times, it's nothing to worry about
The bulb's not a part of your network, you gotta rejoin it
How do I do that?
Reloading ZHA doesn't pull them back in, and everything I'm seeing on Google talks about pressing a button on the device, but these don't have any?
The same way you joined them the first time
"Add devices" button in ZHA and turn it off/on six times
But that just results in the same thing? They get added, but immediately leave the network
Can you enable https://www.home-assistant.io/integrations/zha/#debug-logging ?
I have a few of these bulbs and they're quite reliable with joining
Sure, one minute
I've never seen one just decide to leave unless you ask it to
Alright so logging is enabled, I'm gonna try to re-add them
Did you restart HA after enabling logging?
Yeah
https://paste.ubuntu.com/p/rC8HMzWyyy/
From the ZHA add devices page
What other logs do you need?
Huh, that is strange
Can you post your home-assistant.log file? You can filter only the lines that have zigpy, bellows, and zha.
I'm running Home Assistant in Docker while passing an Elelabs Zigbee Adapter through as /dev/ttyUSB0, if that makes any difference
Nah, the hardware seems to work, it's the bulbs that are leaving
I have the home-assistant.log file, how do I filter it?
cat home-assistant.log | egrep 'zigpy|bellows|zha' > filtered-log.txt should work
You can post the whole thing if you want, the problem is that it has device tracker info, which usually has exact GPS coordinates and other personal info
Yeah that's normal
So your bulb joined at 23:09:05, completed initialization at 23:09:08 and then left the network at 23:09:22?
You weren't turning it on and off at the switch, were you?
Only when resetting them
any recommendations for a wall thermostat? are there ones that only contain a temperature sensor and allow to set a setpoint? like ones that dont have any relays or such?
So six on/offs and then once it pops up in ZHA's joining dialog, you leave it alone?
Yep
That's really bizarre
If it were one of the five I have installed, I'd chalk it up to hardware fault
Actually
Let me try one thing
I have one sitting next to me that I test with a HUSBZB-1 adapter running the most recent firmware and it's never once left on its own. I don't think I've ever had a device do that unless you reset it.
I turned the lights off and on once and they reset
I wanted to see if giving them fresh power would make them rejoin, but instead they just reset?
When you power cycle them they should re-announce themselves on the network, not leave
Weird
Yeah that's what I was expecting
I have a Yale lock that didn't have any problems joining my network
Are they specifically these bulbs? https://zigbee.blakadder.com/EcoSmart_A9BR3065WESDZ02.html
Hmm. Only other thing I can think of is maybe upgrading the firmware on your coordinator. Which one are you using?
Elelabs
The tiny one?
Yeah
I really can't figure out why Zigbee2MQTT is not working properly for me still? I can literally see it publishing the configuration for the light, but the entity is still entirely missing from HA. https://pastebin.com/dH965nW8
https://github.com/Elelabs/elelabs-zigbee-ezsp-utility
I can flash it to EZSP, should I try that
I dunno, maybe the latest firmware can help. I don't have much experience with these chips.
Worth a shot I suppose
There are also some config changes they suggest with ZHA if you do use the v8 firmware, at the bottom of the README
@austere patio They're working after the firmware update ๐
Weird ๐คทโโ๏ธ
I'll take it, I'm just glad it's working
This information shouldn't be in those should it? https://i.imgur.com/Z2zJTLw.png
I am feeling as if this is just a home assistant or Zigbee2MQTT bug?
and this is after I just turned the light off through Zigbee2MQTT. The state has changed in there https://i.imgur.com/vLlx2WE.png
anyone have experience connecting a zigbee door lock (specifically the Kwikset 914) to home assistant so it appears as more than just a lightbulb?
Anyone has some inputs on this? Still unable to get it to work
Have you tried clicking the button on it a few times to wake it up and then click the "Reconfigure device" button in ZHA? Keep clicking the device for like 2s before and 5s after pressing that button in ZHA.
How do I upgrade firmware on the Conbee II stick when using ZHA? Using deCONZ there was a way... And where can I see it's current version etc? Found current firmware under the device, but how would I upgrade?
does Z2M support this?
Yeah, I wrecked my question really. I meant if firmware upgrade with Z2M and supported device works well...
I do it with cc1352 and cc2652
And it has never failed a firmware upgrade
I've done probably.... 150 upgrades
Nice! Another point towards a change of coordinator...
Ok I finally got them working. Unfortunately its not the any of the solutions I've read so far, but just by giving it a new name it works. Leaving it with the default device name, it doesn't work. Thanks for helping
Moving it here. Anyone use the "Frient Intelligent Smoke Sensor" with Conbee II? Does it work?
I'm using ZHA.
It works with Deconz apperently https://zigbee.blakadder.com/deconz.html (model SMSZB-120)
their heat alarm works so its a high probability smoke one works too
Aah great!
The specific model is not on the ZHA list https://zigbee.blakadder.com/zha.html. Maybe it's worth trying then. Got 20% off today.
Yeah found it
And i do not need any app/cloud shite etc correct?
if you have a stick and HA, no
Great! Thanks ๐ป
Oh btw do you know what entities you get? Temp and on/off i guess?
why would you get those on a smoke sensor"
then you probably get a temp one besides smoke and alarm
@austere patio just realized I forgot to properly thank you, so thanks for all your help!
i recently recreated my zigbee network on deCONZ, and every since then, my SmartThings motion detectors detect initial motion, and then nothing... for at least 7+ minutes. It worked fine before, and my iKEA motion sensors work fine. Anyone seen this before?
deCONZ by dresden elektronik is a software that communicates with ConBee/RaspBee Zigbee gateways and exposes Zigbee devices that are connected to the gateway. Our #zigbee-archived channel is a good place to ask about using it with Home Assistant, but they also have their own Discord server.
They may know more about it over on the deCONZ discord
cool, i'll give it a shot!
Hi Guys my cc2531 goes green when i plug it in but then lights goes out after 15 seconds or so, when adding via zha it shows old devices, how do I reset this thing (also shows cordinator offline in visualization)
Delete zigbee.db
If you want to completely reset it, you can wipe its NVRAM (or reflash the firmware): https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#nvram-reset
As for the LED, that's normal. Some of the CC2531s have blindingly bright green LEDs and most people prefer it to stay off but you can configure this: https://github.com/zigpy/zigpy-znp#configuration
yeah I did put something in my config a few instances ago to turn it off, im on a new instants and havent done that but its off now, maybe a update to zha, I thought I had something wrong with it but looks like deleted the db did the job ๐
Yeah, it's the new default
Nice one, was a pretty bright green xD
yeahh not got many devices 1 remote and 1 temp sensor, all my lights are on the hue hub
Is there a recommended "best practice" of how to distribute lights and devices? Several coordinators maybe?
I'm using Zigbee2MQTT for my sensors and buttons. I successfully linked a Hue Tap (after setting the channel properly), then deleted it again. Now, I simply cannot get that Tap to link again, whatever I do. Tried to link it to a Hue Bridge, which worked. But it simply doesn't want to join my Zigbee2MQTT network anymore. Any thoughts?
Ok, thanks. Was thinking of spreading the risk of everything going south at once should it fail. Is there a good way of thinking redundancy?
Don't buy a cheap and crappy coordinator?
Buying a spare if you want to reduce the risks of hardware failure is a good choice
Not even my crappy CC2531 sticks have failed utterly ... worst case remove/re-insert
Ok. Just ordered a new one to switch to Z2M, hope that'll be good
Depends on what you ordered 
Zig-a-zig something... ๐
Then that was a good choice
๐
https://www.zigbee2mqtt.io/information/supported_adapters.html has the link you overlooked
with which (safe) firmware , i'm scared to brick it
awesome Thank You Tinkerer! flashing in progress here . .. ๐
thinking here , i either go for a docker container or use the HA addon
i think i go for the container version of zigbee2mqtt
Great thing about Docker is that you're in control
does someone here knows what i should see when i type
dmesg | grep tty
i can't find the zzh stick
Plug it in, and run sudo dmesg|tail
BTRFS error , probably my external HDD , i unplug it for a moment
I get something like this
[38860565.351542] usb 3-2: new full-speed USB device number 32 using uhci_hcd
[38860565.827045] usb 3-2: New USB device found, idVendor=1a86, idProduct=7523
[38860565.827047] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[38860565.827048] usb 3-2: Product: USB Serial
[38860565.893995] ch341 3-2:1.0: ch341-uart converter detected
[38860565.910672] usb 3-2: ch341-uart converter now attached to ttyUSB0
[79767.502205] usb 1-6: new full-speed USB device number 4 using xhci_hcd
[79767.637149] Got empty serial number. Generate serial number from product.
[79791.994339] usb 1-6: USB disconnect, device number 4
[79819.745222] usb 1-3: new full-speed USB device number 5 using xhci_hcd
[79819.880176] Got empty serial number. Generate serial number from product.
uart converter ...-> that i miss ,
i'll try my debian laptop in stead of synology
Try loading it?
on debian i indeed see a output, checking if it recognises my stick , then i indeed try to load it on syno
daniel@debian:~$ dmesg|tail
[ 1324.072213] usb 2-2: new full-speed USB device number 3 using xhci_hcd
[ 1324.221248] usb 2-2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 1324.221254] usb 2-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1324.221257] usb 2-2: Product: USB Serial
[ 1324.247983] usbcore: registered new interface driver usbserial_generic
[ 1324.248031] usbserial: USB Serial support registered for generic
[ 1324.250697] usbcore: registered new interface driver ch341
[ 1324.250832] usbserial: USB Serial support registered for ch341-uart
[ 1324.250878] ch341 2-2:1.0: ch341-uart converter detected
[ 1324.251474] usb 2-2: ch341-uart converter now attached to ttyUSB0
on debian it sees my stick ^^ <--- yess ๐
The answer: don't use a NAS for anything but file storage.
offtopic but searching for the command to load the ch341 on my nas
exactly mono ๐
i 'm gonna replace the nas with a debian laptop very soon
There is some tricks with Synology
I've posted it here a few times
Should be searchable
i know i shouldnt do this, but i paired my temp sensor in one room then moved it to the other, how long will it take to establish a new route?
i just did "sudo insmod /lib/modules/usbserial.ko" and "sudo insmod /lib/modules/ftdi_sio.ko
plugging it into the nas and praying lol
Depends... somewhere between not long and the end of time
Generally speaking, Xiaomi devices may never pick up a new route, for example
Always pair in place
update: stick not recognized in the NAS (Yet) , but i will search for the tricks from atxbyea

Hello people : stupid question probably but the zzh stick inside my debian machine should be flashed with the router firmware?
Coordinator
oops!
You probably should read the pinned message about how Zigbee works
yes i am reading now ๐
zigbee2mqtt is running now
hey, I'm new and trying to move out from Domoticz. Got my first problem when trying to integrate xiaomi wireless switch from xiaomi gateway for use with blueprints from forums. All I have found are integrations for ZHA and not a single one for Xiaomi Gateway. Does it mean I should drop this gateway and get new one for ZHA to get it working in ha?
Well, if you want to just use the blueprint, yes
got it, thanks
Tinkerer - Thank You for your patience and help
i connected my first zigbee device to zigbee2mqtt - the log is great and it works wonderful , tomorrow i'll do a decent new install (again :P)
If you haven't enabled Z2M's native UI already... you should do that
i'll take a short break and tomorrow i'll do that for sure
this afternoon i tried to connect a xiaomi device, brand new , and whatever i tried it did not connect to the stick ....
everything seemed OK
but right after replacing the battery it did connect
the xiaomi door contact seems to report a temperature
ah yes so that they extend the signal ?
Yes
the zzh stick is a huge plus over the Xiaomi gateway
atxbyea if you want i could retest the stick in a synology , i wonder if it sees the dongle now it's flashed with the right firmware ๐
searchign online for a few other mains powered zigbee devices, i think i go for a bulb
thank you ! i indeed followed that link but earlier my dongle had the wrong firmware ๐ . I'll test it later this evening with my syno ๐ out of curiosity and will let you guys now

whats the "best" channel to run zigbee on? 26? but I also read some devices don't like 26
I have wifi on channel 1 and 11, with possible (but likely unused) 40mhz width which would also use channel 6
Do a scan
Depends on what radio you're using but it's either https://github.com/zigpy/zigpy-znp/blob/dev/TOOLS.md#energy-scan or bellows -d /dev/... scan --energy --duration 500 for SiLabs radios
anyone can confirm that the hue bulbs can start at a much lower light level than my tradfri bulbs?
oh ok thats not alot
Only room I cared about it was the bedroom
yea my exact thoughts, i think the current ikea bulb is too aggressive for my wake up light flow
Ecosmart/Consciot/Leedarson also can get like 10x dimmer than IKEA's dimmest setting
Total newb - can someone give me a brief explanation (don't want to waste your time) or point me to right sources on what's the difference between various protocols - ZigBee, Z-Wave, ... others?
And as someone who is getting into "smart" things now, what is the one I should pick?
Zigbee -> Mesh protocol that operates in the 2.4ghz spectrum. Z-Wave -> Also a mesh[ish] protocol that operates in the 800-900mhz (depending on the country). Has more limitations than zigbee (imho).
It really depends on your budget/use cases. Z-wave devices can be slightly more expensive, but there's also a larger amount of Zigbee devices available as opposed to Z-Wave devices. Zigbee devices also tend to be better on batteries. But, Zigbee also introduces headaches when it comes to interference from WiFi and you will want to plan for that by adjusting your WiFi channels versus your Zigbee channel.
hmm, I see
could your neighbours wifi interfere with your zigbee channel too? assuming the walls are connected
ZigBee more expensive? I can usually buy 4 zigbee devices for the price of one zwave ๐คฃ
I fixed it. LOL (still on my first cup of โ )
Zigbee devices are cheaper, better on battery, and there is a greater selection.
OK, I see
If you're willing to wait for shipping, you can get some really good deals on Chinese-made Zigbee devices from AliExpress.
The Aqara range is good.
grumble default response: I really, really, REALLY wish they would release the Aqara T1 line already ๐
so I'm reading that the range in living areas for zigbee is around 12 meters, but zigbee being the mesh network it is - does it mean that every "corner" device extends this network by an additional 12 meters? eg a switch connected directly to the electriciy, not to just a battery
Well, ish
The range is ... quite varied, and yes, every router device does it
That's most mains powered devices, but not all
what would be considered a router device in this sense
Anything that's not an end device ๐
right now I'm sorting out cables in the walls, so thinking about dimmers/switches/bulbs
End devices are anything battery powered, and some bulbs and switches/dimmers
right, I see
Obviously if you cut the power to a bulb it's no longer a router, and you broke your mesh
Don't break the mesh. ๐
let's say for a moderately big 2 floor 4 bedroom flat, about 100 meter square, would you expect zigbee to cover it just fine if the server is in one of the corners? and by server I also mean the "main router", w/e it is called in this terminology. The module that controls the network, hardware wise
Yup.
Coordinator
And, the mesh will have no trouble - the coordinator itself probably won't cover it all though
can smart switch turn change the colors too though? ;/ assumign there are regular, non-smart, lights in the circuit
yep, that makes sense
Practical range of Zigbee is typically in the 8 to 10 meters range - less with solid walls or other obstructions
that's the distance between 2 broadcasting devices, right?
Any two devices, yes
Coloured lights? ๐คข
ie. as logn as my flat is riddles with broadcast-capable devices, it's fine ๐
Routers is the term
ye, right
There's a useful guide to the language and Zigbee in the pinned messages
If you want colour (or colour temperature) you need smart bulbs. Though, Philips do dumb bulbs that get warmer as they dim
my current plan is to have smart bulbs that can change color (not going pink, more like a bit orange-ish towards the night, etc) in the "main room lights" and ceiling lights will be connected to the curcuit to a dimmer on the wall
and some smart led strips, nothing excessive tho
I'm opened to any ideas tbh. I'm at the stage where things are still super flexible
For what you describe, CCT (colour temperature) is likely what you're after
(hopefully by now other brands will do something similar)
yep, that looks pretty slick
just to confrim, that's not a smart bulb, that's a regular led bulb that dimms based on the input received from the circuit dimmer, right?
Yes
https://www.amazon.co.uk/dp/B073FT1QT2/?cstrackid=8caa3f53-57d5-481a-9904-d978a80219e8&tag=signifycsuk-21 so this is the equivalent but ceiling lights
arghhh I come from #hardware-archived to #zigbee-archived because I started to go in the software/zigbee side of things, and in #zigbee-archived I started to discuss hardware q_q
From my current, basic, understanding - the devices do not communicate with each other through server, but directly. The server, and the controller, is there to re-program them and to give timed signals and such, but once you say "this on/off switch turns on/off devices a b c d e f" - this info is saved on the devices directly and in case the server/controller goes offline, the devices will still work, until they are re-programmed?
Or do I completely misunderstand the technology?
Binding works that way, yes
Mind to elaborate a bit? I sear I'm not too stupid, just getting familiar with the terminologies and the technology ๐
ie. the only reason right now as to why am I not doing every light "smart", in a sense, is because I was worried that if something happens to the server/controller I will end up unable to turn on my lights and will go by the candles till I fix it ๐
but apparently that's not the case
Zigbee binding is how you tell a switch that it should turn something else on and off
Or a dimmer controls a (Zigbee) light directly
Without it, HA is involved in all activity. Which is pretty normal because very few switches actually support it ๐
There's a LOT to unpack there.
be my guest ๐
ye that's what I was thinking - I would be quite surprised if every manufactured supported this
@red rose When using Discord's new Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Click @ ON to @ OFF to stop this - on the right side of the compose bar.
So, for your first point, if you're adding a server to your network (and really, that's what HA is in a nutshell), follow the numerous guides around to make sure it's stable. It's not hard to do.
For your second point, if you use binding, then it doesn't matter if your controller goes down or not (Z2M, ZHA/HA, etc). The devices that are bound to each other will still work so long as they can communicate directly.
Obviously things will be running smoothly for the most part, but at the same time a PC can need a manual restart from a time to time, or a hardware component will blow out, etc, and while things get fixed you want to be able to turn on your lights ๐
yes, this is new to me and that's super cool... now, realistically, how many devices are there that support this, and is there a list? or how can I know if a device supports this?
don't turn them off when that happens ๐
There's tons of devices that support it... https://zigbee.blakadder.com/ is pretty much the definitive guide to finding out what devices are supported and what they support themselves.
perfect, thanks, OK, hardware aside - zigbee specifically - is there some sort of delay expected between turning on the switch and bulbs actually getting lit? Are we talking a few ms, humanly not really noticeable, or are we talking 500ms?
I know I have been in some "smart" homes where you turned on a switch and things took 2 seconds to turn on, and apparenly that was "the way it is" (not software delay), but admittedly this was a few years back and obviously technology has advanced since then a ton
there is but everyone perceived time differently when it comes to turning the lights on
it was super uncomfortable because you kept wondering whether you turned on the right switch at all
That largely depends on the quality of your mesh. In a healthy mesh, you can expect between 250ms-1000ms. But, yeah, what blakadder stated... perception plays a large part.
In my house, I have mostly WiFi bulbs with Zigbee sensors. So, walk into a room > motion sensor trips > sends notification to HA > HA issues command to bulb. That whole process typically takes less than 750ms. Rarely do any of my lights take more than 1 second to activate.
and we also talk about dimmers that control their own circuit, albeit the individual devices are a few millimeters apart? or that one is basically instant, but if another device is bound to getting turned on when it turns on (eg a smart bulb in the middle of a living room) - that one can get turned on with some delay?
A few mm or a few meters, doesn't really matter
What's more important is the routing and processing
lets just say if you have 6 bulbs turned on by once command they will not all turn on at the same time most of the time
Though, if you use a Zigbee group, it'll effectively be the same time
Zigbee light groups for the win.
Effectively reduces the popcorn effect to next to nothing.
right, a bit slowly please - just dimmer now. Dimmer has 2 components from my understanding. The module taht you rotate - the wheel, and the thing (forgot the term) that actually controls the voltage, right? When you physically turn the wheel, a signal is emitted into the network and other devices can act upon it. But at the same time the input is received instantly for the controller to increase/decrease the voltage - whether the actual dimmer, as a whole, is connected to the network at all. Right...?
intuitively that should mean turning the wheel is basically instant
If you're talking about a dimmer wired to a dumb bulb, yes
Potentiometer is the word you are looking for. ๐ lol
If you're talking about a smart dimmer and a smart bulb then ... eh
yep, this exactly
@red rose When using Discord's new Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Click @ ON to @ OFF to stop this - on the right side of the compose bar.
Please @red rose
Stop @red rose
With @red rose
The @red rose
Tagging @red rose
I understand that if I want the smart bulbs to turn on when I turn on a smart dimmer, there will be certain delay as the signal must propagate through the network
Correct
On a small network without a lot of congestion, you'll rarely perceive the delay. On a larger network and/or mesh, you might. It's one of the trade-offs in regards to smart devices (imho).
smart and large - we talk about physical distance or number of devices, or both?
Both potentially
Larger distances == weaker signals == increased risk of lost/corrupt messages
do you mind elaborating on this a bit please? I thought zigbee is its own protocol, not related to wifi
right, OK, that's cool
Zigbee and WiFi both coexist in the 2.4ghz spectrum. But, what Tinkerer stated: HA allows you to mix and match nearly everything from damn near any protocol family. So, in my use case, I have Zigbee sensors controlling WiFi devices. I also have WiFi devices controlling Z-Wave devices. It's like a big, blended family. ๐
well, my thing is that I'm paranoid and private, so I do not want any IoT device that has access to internet, so I'm thinking about creating two separete wifi networks, for the future case where if I want to buy an IOT device that works on wifi, I will still be able to do stuff with it, but it won't be able to communicate with the outside world
VLANs.
How good is your existing networking skills?
only theoretical ๐
Because, trust me, that's not as trivial as you think
yes I know it's not
but luckily I have some colleagues who are experts in this area so I think they will be able to help me out, heh
networking is a major pita
You'll want to query them about vlans then. In a nutshell, you create vlans to block certain devices from being able to access other segments of your physical network.
Then you realise that everything smart, including HA, needs to be there
LOL
yep, the problem is when you want to have a device that listens there, ie. the pi with HA on it...
And then that causes fun with how your phone accesses that, so you open up holes
and be able to access the PI from outside
heh, at least we are on the same page, ye, that's not certainly easy
or rather, it's not straightforward, let's put it that way
It's certainly not. BUT... it is doable and there are at least 5+ years of guides and such on how to do it.
I assume HA has some android app where if you have everything on the wifi where your phone is, you can connect to it etc?
Yes, but it's really a wrapper for the UI
I think the BEST advice I was ever given (and I continue to give to this day) is that you have to have patience when starting out with home automation.
yeah that's to be expected
It will be a case of one step forwards, ten leaps backwards at times
I like to Tinker with things, heh
You'd be surprised how many people don't get that... lol
my electrician showed me a "smart led strip" he installed... and I asked him to show me how is it turned on /off
it had a frikkin remote control with 4 colors printed on it...
"smart"...
๐ญ I cannot post gifs, OK
Nope. It's a mod thing ๐
Nah, it's actually a lifesaver in busy channels.
ye, I'm kidding
BUT... back to the topic... start off small. Personally, I'd go smart bulbs over switches to start. Or, start with one dimmer and a few dumb bulbs.
And keep doing what you're doing: asking LOTS of questions.
OK, so, just to clear things up and reiterate some stuff, to make sure I get it:
(1) dimmers = local, dumb, lights = instant
**(2) ** anything over the network, whether it's a smart bulb or w/e, will take ~ 250-1000 ms. Not perfect but at this point you can make it turn on gradually to make it like that it's intended
(3) lights inside a group turn on simultaneously, not individually (with arbitrary delays in-between)
**(4) **mesh network = every router-ish device is extending the range, so as long as you have a device in each room (basically) you are fine
(5) devices can be bound to not rely on controller/server to know what to do (at least partially, like smart switch -> turn smart bulb on), but, obviously, not all devices support this
(6) HA can interconnect and work with anything, but I would think if one has the choice, stick with one protocol for the simplicity of things
(7) ZigBee works on higher frequency, so less range, but more devices available than ZWave, and also usually cheaper
#4: Most devices. The basic rule is that if it's mains powered, it should be a router, but there are fringe devices that break that spec.
#6: That actually goes against what HA is and does. It's a hub for all your devices/protocols. Starting off, yeah, stay with as few protocols as you can, but keep in mind that usually you can find an integration for pretty much anything (~1700+ integrations and growing as of today).
Everything is else is basically on point. There's nitpicky things, but you'll discover those as you learn more.
(6) yeah I get it, I talked from the newbie perspective, as you say, start off with 1 thing...
here I will go kidna into all-in mode because I'm in the process of getting my flat built, so having some smart bulbs & stuff in place changes how the electricity (cables) look in the walls
LOL, we deal with some many levels of knowledge here and in the forums, I sometimes tend to reiterate things. Sorry... Def not a slight against you at all.
Yeah, I remember you mentioning that in hardware.
ie. when I move in all walls will have dimmers
(2) or less
(3) Mostly
(5) Some can
(6) Yes, and whatever
I had a Z-Wave remote controlling a WiFi LED strip through HA, delay wasn't something you could notice
so what I plan to do now is to get rpi/ha up and running asap and make some very basic (ie literally in my living room) electrical network with the devices to get myself familiar with it
so now the question will be what hardware to get, ie literally what dimmers, bulbs, switches, etc
once I decide on some I'll buy 1 to test it out, compatibility, etc, and then buy however many I need
hope that makes sense
Well, that's a ...
Looking for advice about a device to buy? Remember to provide guidance on:
- Which country you're in
- What your budget is
- What protocols you prefer (eg Zigbee, WiFi, Z-Wave)
- Any features you want (such as power monitoring, dimming, etc)
The right question though is what problem do you want to solve first and start from there
Bookmark blakadder's site as a first step in choosing hardware. When you're in a store or online shopping for devices, check it. If there's further questions, ask here or in the forums. Doing this before purchasing will save you a LOT of headaches (and perhaps money) later on.
For example I want lights that come on automatically when the room is dark sounds easy, but then quickly becomes more complicated than you expect
- Slovakia (EU)
- Flexible - I understand a smart bulb is more expensive than a traditional one, but not gonna spend 50 eur per bulb ๐
- ZigBee
- Starting off with lights only. About 50 dimmable bulbs (not smart), eg the philips ones mentioned earlier, and let's say 10 smart bulbs in various rooms, and 2-3 smart led strips
Ikea (Tradfri) bulbs are cheap, and fairly good
Gledopto do LED strip controllers so you can add any length/quality of strip that suits you
The 50 is overkill, let's say 30
Oh yeah and I'm thinking about doing led strips on my stairs, with a motion sensor, to get turned on gradually (eg 300 ms delay in-between)
so while that can be done later (software wise), it would be nice to get wiring in-place while things are still possible
You may also want to think about digital LED strips, for another rabbit hole
https://github.com/Aircoookie/WLED is one option, so you can do fancy lighting effects, sweeps, fades, and more
the led strips got me a bit worried, beacuse the electricity guys have no idea wtf am I asking from them
12V or 24V supply at one end (at least for 24V)
The controller can run from the same supply (stepped down to 5V usually), so really all you need is a power socket somewhere convenient
I do understand how 1 strip works, but in case of eg stairs
where if you have 20 steps you have 20 strips
that's where I get lost, hardware wise (wiring)
If it's analogue then you can wire them in parallel. If it's digital you'll wire them in series
You can of course wire analogue in series too, and you can run entirely separate digital strips from the controller if you want to, but it's probably not a good idea (not really a topic for this channel though)
Embrighten Zigbee add-on switches are $5 on Amazon today (US)
Damn... that's not bad!
What sucks is that I don't have any 3-ways in the house ๐ฆ
I think this is a silly question but here goes. My whole house is Hue lights. Instead of trying to extend my new Hass zigbee mesh with some powered devices, can I just unpair my Hue bulbs from hue and pair them to Z2M?
Yes.
and the downside I guess is losing the Hue app/ecosystem and the device updates that gives?
I'm wondering why I wouldn't do it
This is not a downside
And the devices still receive OTA updates from z2m
oh nice
IIRC hue hubs had a limit of ~50 devices and I'm very close to that. would this allow me to go further (numbers wise) with my network?
cool. feels like this could be a good move then (once over the migration hump)
My hue bridge was full with 30 devices because I had a heap of scenes on it too
No issues there now
Migration will be easy, few hours max if you do it right
What I did was get the broker and z2m running etc
Then one by one I removed devices from my hue hub which put them in pairing mode which then appeared on z2m
If you're willing to waste some time with a CC2531 (or another sniffer), you can steal the Hue hub's network info and just "take over" the network. Otherwise I think there's that Hue remote touchlink thing that you can do to speed it up?
I think touchlink means getting the zzh stick next to the device?
which is going to be hard
Always pair from the coordinator out if you can, just because it helps build the mesh "right"
right so start with the bulbs in the hallway next to my office where the server is
Yeah
does the bulb to be paired have to be in range of the coordinator? or just another bulb on the mesh?
The mesh
The mains powered devices should sort themselves out anyway, at least Hue ones should, but you may as well help things along
ok cool so as I work out the bulbs further away will see the bulbs nearest that are already adpoted
Yup
nice
Some will still go direct to the coordinator, others will join via another bulb
I saw something about using Groups in z2m to tidy things up
ahh ok, will z2m groups get added to hass as groups?
Read the link ๐
Groups in Zigbee allow you to control multiple devices with one command - faster than doing it device by device
Groups in HA are just a collection of things - if you turn a HA group on then the devices are turned on one at a time
yeah the z2m doesn't explictly say hass also sees them as a group
I guess it's implied
or I'm not reading it very well ๐
It should have a link to https://www.zigbee2mqtt.io/integration/home_assistant.html#groups
(Zigbee group != HA group)
Yeah, since they're not the same thing
yeah awesome
would they add auto-discovery at some point do you think?
seems like a sensible thing to do
No idea, there's likely an issue on the Z2M Git somewhere

Weird-ness here: I added an Aqaros temp/humidity sensor. I added it to a graph card of temps in the house, which is in F, but its displaying in a separate graph. Its displaying F values but the graph says its n C.
Can't post a pic here but its basically in the same car but a separate graph underneath it
Seems like a display issue, not a Zigbee issue
hmm one of the bulbs failed interview. do I just delete it and let it re-pair again?
Yeah I will hop up to another channel, was just looking to see if anyone knew if there was a setting I Neeed to change. I checked all the config files. Thanks puddly
No need to delete anything, just keep trying the pairing process until it sticks.
All Zigbee sensors should be reporting in degrees C after quirks/converters are applied
how do you retry the pair with a bulb?
Same way you did it the first time.
first time I just deleted it from Hue and it auto-paired
do i need to add it back into Hue, then remove it from there again?
๐ค
If it failed the interview, it's not connected to anything.
Follow the pairing instructions for that bulb while your Z2M coordinator is accepting new devices.
yeah just tryingto work out how to get it back into pairing mode
tried another in the meantime and that's failed to interview as well
next 2 fine though, so 4/6 ok
aha there's a magic trick with a Hue Dimmer ๐
which is quite hard to do when your bulbs are closed together ๐
I have a Frient smoke detector "SMSZB-120" with ZHA and ConBee II.
There entities for status (clear, smoke etc), temp but also a switch. My guess was that the switch would activate the alarm. But it doesn't. Switch goes on and back off after 10-15 seconds.
Can i find out if it does work with the switch? Anyone else have those detectors here?
What do the ZHA debug logs (https://www.home-assistant.io/integrations/zha/#debug-logging) say when you try toggling the switch? Can you trigger the alarm or test it or something and post the logs?
Could be that the device is erroneously reporting the on/off as an input instead of an output and it's made to directly trigger lights or something?
Maybe. I'll activate logging and we'll see.
Not sure I'm quite understanding this z2m groups thing. https://www.zigbee2mqtt.io/information/groups.html. That yaml example creates a group in hass with id #1 and then I add the zigbee device addresses to it?
how is that linking to the group I created in z2m then?
oh god ignore me
reading completely the wrong page ๐
Well i see that it tries to turn it on
Also
2021-06-01 18:23:26 DEBUG (MainThread) [homeassistant.core] Service did not complete before timeout: <ServiceCall switch.turn_on (c:455a4de59c9114c9d9114232d070b093): entity_id=['switch.smokedetector_bottom']>
Seems like it just doesn't handle the request
If i check Clusters there's On/off etc, Maybe t here's a way to puzzle something together that way?
If you get enough debug logs of the device operating, sure
Alright so i got it to activate by detecting smoke
So the "switch" is an output, not an input
According to the manufacturer they should be able to trigger each other. So there should be a way to do it.
The switch didn't trigger on smoke. Just the status.
I don't think you'd see it trigger in the UI. What do the logs say?
When it activated https://paste.ubuntu.com/p/fFZC3mGxYB/
So that's the cluster ````IasZone (Enpoint id: 35, id: 0x500, Type:In)``` i guess. And there Zone_status (id: 0x0002) with the value "ZoneStatus.Restore_reports|Supervision_reports".
Failed to parse message (b'090a00310000') on cluster 1280 doesn't look good
What does that mean?
Your device is sending bad reports
Spec says to include these fields:
"zone_status": ZoneStatus,
"extended_status": t.bitmap8,
"zone_id": t.uint8_t,
"delay": t.uint16_t,
Yours omits the last two
Likely needs a quirk to handle those reports, as otherwise they can't be parsed and are discarded
But that's not your current issue
Alright so add support in ZHA more or less then?
Oh alright. What's my current issue? ๐
And i think i managed to get some more logs from the debug if needed https://paste.ubuntu.com/p/VXVhTVvqNX/
Yep, it says it has an OnOff input cluster on the first endpoint
Alright, and i wanted an output?
The goal more or less is to have HA activate the one detector when the other triggers. So if it's a switch or not doesn't matter. But i guess there's some sort of command for turning it on/off.
Do you have the original hub or some way to see how that's setup?
No just these to detectors i'm afraid.
Hmm. I'm not too familiar with the IAS stuff so maybe triggering multiple alarms in one zone is already covered by the spec
Alright. Seems like the battery status not reporting either. It's on the Deconz list
https://zigbee.blakadder.com/deconz.html
But not HA
https://zigbee.blakadder.com/zha.html
But the Frient Head Alarm is.
So i dont know
Oh. And it's new-ish.
Looks like there's enough info there to maybe start on a quirk
Setting a notification on that issue. Thanks a lot for your help!
But it works! Sending "issue_zigbee_cluster_command" in NodeRed does the trick for now.
Later on i would like to bind them together so i dont have to rely on HA/NodeRed for it.
Just wondering but is there a max mesh size a zzh can cope with?
A few thousand devices
oh, cool
Zigbee mesh tops out just over 65K devices
Obviously you need most of those to be routers
just seems that the more bulbs I add, the harder it is to get things to pair
before I'd drop a bulb out of Hue and it would appear really quickly. now some just dont show at all
ZZH is good for 50 direct children, 100 normal routes, 200 source routes, and 200 Zigbee 3.0 devices
I've got 60 odd devices without issues, others have well over 100
ok
is pairing more reliable if the coordinator is in the middle?
I thought they just paired through other nodes so it didn;t matter
Mine is off in a corner of the house, I've had no issues pairing
Are you using Zigbee2MQTT or ZHA?
z2m
Have you mapped what the mesh currently looks like?
hmm can't seem to add images here
Please use imgur or other image sharing web sites, and share the link here.
Image posting is blocked in most channels to discourage people from sharing text as images.
Not terrible, but a bit less interconnectivity than I'd expect
The battery ones haven't swapped to a neare node either which is interestinf
Well, depending on the brand, they may not
Xiaomi for instance are well known for not
Maybe you just need to wait a little for the mesh to settle 
I've got about 60 devices, and new ones pair without any issues
I was hoping the battery ones would njoin nearre thing. Will let it settle
Well.... depends on the brand, and you haven't said what they are, so ... 
Aqara
Xiaomi then
Xiaomi for instance are well known for not
If you want them to join a nearer router, you need to re-pair them and see what happens
Ok will give that a go later then
Might get a long usb and run the coordinator somewhere better as well
An extension cable is a good plan anyway, at least a USB 2.0 one is
I just installed z2m in docker. My automations don't work, and in looking at why I noticed on a remote click z2m sends like 4 mqtt messages or so. But when I watch state_changed in the developer tools, each click generates dozens of messages, which seem to repeat, too. Is this normal?
I've got like 5 very stubborn bulbs ๐
Plugged my zzh into a long usb cable and took it into the lounge. Suddenly all my missing bulbs started pairing
If you want your Aqara devices to jump to anything but the coordinator, you need mains-powered, Aqara-branded routers.
bugger
I'll have to look at my map again but pretty sure most of mine are connected to parents
i've moved my coordinator back closer to where it was and things are still working - looks like it just needed to be closer for the bulbs to pair
I'll need to come up with a final location
Apologies, I meant if Aqara end-devices go down and you do not want them to deep sleep forever after, you need to have mains-powered, Aqara-branded routers.
There don't seem to be many mains powered aqara devices?
the light switches without neutral
If you leverage Aqara mains-powered devices as routers, Aqara end-devices have the ability to find and pair with new parents.
Have a house full of them ๐ been great so far
hmm light switches could work
I currently don't use our lightswitches - I just have hue dimmers on the wall next to them
I use the two-switch versions and decouple the second switch's relay and use that switch as a remote for other stuff, like bookshelf lights or lamps
ahh I need UK
ahh
If you use Aqara end-devices, I can't recommend any other routers than Aqara mains-powered that share the same bastardized version of Zigbee 1.2
How long does that take?
ahh cool, that doubles as a temp sensor
wish I'd known this before I bought 5 aqara door sensors ๐
Could just be a Zigbee 3.0 vs 1.2 thing
@austere patio I have not recorded how long. But when I unplug my coordinator for extended periods of time, all end-devices that were connected to the coordinator will have found new parents in Aqara mains-powered routers.
I shelved all of my Ikea Tradfri Smart Plugs after finding this functionality
lol plus I moved my whole light network off the hue hub thinking it would help with the door sensors ๐
In my opinion, it's the only way to provision Aqara 1.2 based end-devices reliably.
The largest knock on Aqara 1.2 based end-devices is that they are unable to find new parents when a parent goes down or dies. But if you stay within the Aqara ecosystem, everything functions flawlessly.
They are able to hop to a new, non-aqara based parent when a parent dies?
Yeah
I have no Aqara routers
Could be due to the 5s trigger period mod but I have no uhmidded sensors to test
so which are the right light switches if I wanted to try that route?
I did not have the luck you had with my Tradfris
Are they all running the latest firmware?
Cuz not all bulbs are 3.0 without an update
had two routers fall off, and all of the sensors that were connected previously to those routers hopped on new parents.
All of my devices are 1.2
I don't think sensors have a way to tell though
They don't query the parent model info iirc
Or really any info other than knowing the parent IEEE I think and I doubt Aqara does anything fancy like pulling a prefix out of that and applying different logic
Looks like the newest aqara wall switches are 3.0
What I am saying is that by using Aqara mains-powered routers, Aqara devices are able to find new parents.
Yeah. I'm not sure how that would work though
They can't tell they have an Aqara parent
I'll have to try it out myself, I'm curious to see why you're having that issue
The Aqara routers I believe are Zigbee 3.0?
Itโs not an issue, itโs a solution
Right, but I'm curious as to what specific change solved your issue
My only explanation is that they used the same bastardized ZigBee 1.2 protocol
Thereโs some sort of proprietary logic that enables them to find each other after a parent dies
how does one tell which protocol version they are using?
Google. Google the model number and look at the product spec
It's a spec revision more than a new protocol. It's cross compatible, only major change is security and some increased timeouts
Whatever it is, itโs the only way to provision Aqara 1.2 devices by the 100โs reliably
Heading into Yoga ๐งโโ๏ธ
Maybe for my doors further away then I need to find a different door sensor. one that's happy connecting to hue bulbs as routers
Interestingly, both Silabs and TI have articles about high density networks and in both cases it was about 400 devices. I have a strong suspicion the zigbee network exponentially goes to shit once you over that number. So a 1000 devices maybe, but a few thousand I'm highly sceptical. Thread bis far better suited to handle larger networks. Having too many routers in zigbee network is not helping when there are too many of them, that's why a thread network has only 64 routers and a device can switch between being a router or an end device
Anyone else having 0 devices joined after upgrading zigbee2mqtt from 1.18.3 to 1.19? Just had to walk around the house to manually rejoin everything, as rolling back didn't help ๐ฆ
The commissioning and backup procedure has heavily been refactored
Somebody over in the Z2M Discord linked to https://github.com/Koenkk/zigbee-herdsman/pull/303#issuecomment-850989092
Well, you can say so if you need to rejoin every device ๐คญ
Did you check the log file for errors/warnings?
I'll recheck, but didn't see anything in my first round
Yeah, no error at all - just
info 2021-06-02 08:37:52: Logging to console and directory: '/app/data/log/2021-06-02.08-37-51' filename: log.txt
info 2021-06-02 08:37:52: Starting Zigbee2MQTT version 1.19.0 (commit #89cb4f9)
info 2021-06-02 08:37:52: Starting zigbee-herdsman (0.13.111)
info 2021-06-02 08:38:01: zigbee-herdsman started
info 2021-06-02 08:38:01: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20190109,"transportrev":2},"type":"zStack12"}'
info 2021-06-02 08:38:01: Currently 0 devices are joined:
info 2021-06-02 08:38:01: Zigbee: disabling joining new devices.
Configuration is not consistent with adapter state/backup!
Is the entry that would have been in your first 1.19 startup if the problem is the one I linked to
You'll want to check that log file
And if I check the older log (for 1.18.3) it mentions all my devices (all 9 of them, lol)
There's nothing of interest in my first 1.19 log file โ๏ธ
That is literally all (except for the obligatory "connecting to mqtt" and "starting frontend" messages)
No idea, I'd open an issue about that (in Z2M)
Already done ๐
I do see from your issue that your adapter firmware is old, that may be related
I guess there are plenty of others out there that are still using this.....
I'll need to figure out how to update.
One of the latest-dev builds failed to read my panid

