#Z2MQTT device can't find network route for 2 days, but still showing "Available".

1 messages · Page 1 of 1 (latest)

dreamy fulcrum
#

I have a couple of light switches that get unresponsive once in a while. A simple device reset does the job, but it's annoying when I don't know. I'd love to know as soon as it happens.

They are both quite close from the coordinator, and also from one another.

I thought that's what the "Available" option in Z2M is meant to be. But none of my devices ever show unavailable, even when they actually are. Why?

Z2M log here: https://dpaste.org/sDnrb

pale ingot
#

Can you share a map of your network?

dreamy fulcrum
pale ingot
#

I wanted to see how they are connected. In this case it looks like they are far apart from the coordinator with no router in between. Maybe you can add one?

undone ruin
#

@dreamy fulcrumInterference does this. It's not always obvious why or whats causing it either. Only way to test is to move them somewhere else and see if it continues.

dreamy fulcrum
#

I think it's just an issue with the particular model. I'm not too bothered that it happens. I just want to know when it does, and it bothers me that the Availability thing doesn't change. That's my issue really. Why does it happen?

pale ingot
dreamy fulcrum
#

Will have a look thanks. Though I recently did a channel change and I think I'm already on one of the clear ones :S. Can't remember now which one.

dreamy fulcrum
#

My guess is I should change the command with my coord instead of /dev/cu.usbmodem14101

#

but no clue what's the right one to write there

pale ingot
#

Try python3 instead.

dreamy fulcrum
#

same

pale ingot
#

Show me.

dreamy fulcrum
pale ingot
#

The $ is not part of the command. It's just a rather needless way to show that it is a command.

dreamy fulcrum
#

FileNotFoundError: [Errno 2] No such file or directory: '/dev/cu.usbmodem14201'

#

that's with python 3

pale ingot
#

You can't just use a random path.

dreamy fulcrum
#

serial.serialutil.SerialException: [Errno 2] could not open port /dev/cu.usbmodem14201: [Errno 2] No such file or directory: '/dev/cu.usbmodem14201'
This is with python

pale ingot
#

Check ls -lah /dev/serial/by-id/

dreamy fulcrum
#

that was my guess. 😂

lofty bridgeBOT
#

Open your Home Assistant instance and show hardware information

pale ingot
#

It should also be listed here.

dreamy fulcrum
#

there it is

#

/dev/ttyUSB0 ?

pale ingot
#

You can use either of the paths for this. Make sure it's not used by anything.

dreamy fulcrum
#

sorry don't know what you mean

pale ingot
#

The left side (green) is a link to the right side. Both are valid paths.

dreamy fulcrum
#

python -m zigpy_znp.tools.network_scan -a -c 11 /dev/ttyUSB0 is this the right way?

pale ingot
#

It is one way.

dreamy fulcrum
#

still don't know what you mean xD I don;t know what they command is doing. I'm just pasting snippets.

#

tiemout error

pale ingot
#

Pictures of text are not optimal. Is ZHA or Z2M still running?

dreamy fulcrum
#

z2m is, yes

dreamy fulcrum
pale ingot
#

I told you to make sure the stick is not used by anything.

dreamy fulcrum
#

oh, missed that sorry.

pale ingot
#

It's kind of locked if Z2M or ZHA is using it.

dreamy fulcrum
#

just shut off the add on?

pale ingot
#

Yup. I'd also remove that -c 11.

#

Note that I do not know if interference is the issue. Just giving you options to troubleshoot.

dreamy fulcrum
#

no prob

#

still timeouts

pale ingot
#

:<

#

No idea then

dreamy fulcrum
#

double checked and it's not being used

pale ingot
#

Is this even connected via USB to the server? It's in network mode.

#

Try replacing the /dev... with socket://ip:port from the Z2M section on the left.

dreamy fulcrum
#

it is. It's connected via both, but eth is the connection being used afaik

#

trying the energy scan instead. DIff error

dreamy fulcrum
#

not sure what to extract from here tho. I can see some devices being in diff channels. Most are 25, but a few are 19 and 14, and 16. Also a couple 0 LQI. Can't say as it keeps scrolling and they hav eno names XD