#after 15 minutes it disconnected again

1 messages · Page 1 of 1 (latest)

midnight moat
#

can you try running an energy scan using zigpy-cli - it will run until there is a problem or you kill it with control-c. I';d like to see if the same crash happens to isolate if this is more of a z2m problem or hardware issue.

tulip moat
#

And how do I run it ?

midnight moat
#

similar to how you ran the flash with python

#

do the pip install commands

#

then run the energy scan, shut down z2m

#

and you can address the coordinator just as you did for the flash: socket://IP_ADDRESS:6638

tulip moat
#

yes but when i do the pip command it says pip is a invalid command

#

that's why i asked how do i run it

midnight moat
#

do it like you did the pre-reqs for the flasher wit py -3 -m pip install

tulip moat
#

it does not work in a windows terminal or python terminal

#

ERROR: You must give at least one requirement to install (see "pip help install")

midnight moat
#

preface the install command from the docs

#

py -3 -m ......

tulip moat
#

i redownloaded the pip file

#

i'm in the folder of the py file but it won't work

midnight moat
#

so you ran py -3 -m pip install git+https://github.com/zigpy/zigpy-cli.git?

#

there shouldn't be a folder as far as I know

#

you should just be able to run zigpy from the commandline

tulip moat
#

Collecting git+https://github.com/zigpy/zigpy-cli.git
Cloning https://github.com/zigpy/zigpy-cli.git to c:\users\nigel\appdata\local\temp\pip-req-build-hbpbfcj_
ERROR: Error [WinError 2] Het systeem kan het opgegeven bestand niet vinden while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

midnight moat
#

try

#

py -3 -m pip install git

tulip moat
#

ERROR: Could not find a version that satisfies the requirement git (from versions: none)
ERROR: No matching distribution found for git

midnight moat
#

can you google how to install git on windows?

tulip moat
#

sure thing

midnight moat
#

or git commandline

#

what do you run HA on? it might be easier to do this there.

#

windows. looks like a pain

tulip moat
#

HA OS on a mini pc

midnight moat
#

okay

#

install this addon:

tulip moat
#

thats already installed

midnight moat
#

okay can you ssh into it or open it from the web (may not be able to paste things in the web).

tulip moat
#

im in the terminal

midnight moat
#

run this:

#

docker exec -it homeassistant bash

#

then you should be able to just run

#

pip install git+https://github.com/zigpy/zigpy-cli.git

tulip moat
#

sec the terminal is acting funny

#

i'm using putty to connect thats oke right or should i use a terminal

#

[core-ssh ~]$ docker exec -it homeassistant bash
-bash: docker: command not found

#

i'm using root user on my HA os to connect in the terminal

tulip moat
#

oke done and done

#

pip installed and updated it in the progress

#

i turned off z2m and brokker

#

ran

#

zigpy radio znp socket://192.168.0.15:6638 energy-scan

#

atleast i think that's the right commanbd

midnight moat
#

did you get scan results?

#

should just endlessly run

tulip moat
#

i got a wall of text

midnight moat
tulip moat
#

nope

#

2023-01-09 16:20:46.868 homeassistant zigpy.application ERROR Couldn't start app lication
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 145, in startup
await self.connect(

midnight moat
tulip moat
#

and it gows on for quite a bit

tulip moat
#

that's why it didn't work

midnight moat
#

ah yes

#

without seeing the whole error can't know what is wrong

tulip moat
#

sec

midnight moat
#

are you sure z2m is shut down and can you ping the coordinator from the same commandline, that error is basically it couldn't be reached.

tulip moat
#

il ping it now

#

64 bytes from 192.168.0.15: seq=2 ttl=64 time=0.151 ms

#

--- 192.168.0.15 ping statistics ---
31 packets transmitted, 31 packets received, 0% packet loss
round-trip min/avg/max = 0.087/0.170/0.213 ms

#

ping works fine

#

reset the device and now its working i think

#

seems best zigbee channel to use would be 12

#

if i'm reading this correctly

#

currently on 15 ad indicated with the brackets

midnight moat
#

let it run see if it dies same time period z2m has issues

tulip moat
#

okay ill keep it running

midnight moat
#

just the reasoning here.. the energy scan starts up the coordinator network to do the scan. it is using he zigpy python libs instead of z2m. so just want to see if the same type of crash occurs.

#

also the higher bars mean more traffic. 20 looks the best if you wanted to change. but 15 not horrible and some of that noise is likely your existing network.

tulip moat
#

running 1 hour no errors

midnight moat
#

did z2m normally crash out with that error in this time span?

tulip moat
#

2 hours running no problem

tulip moat
#

once it crashed after 10 minutes once 17 minutes and then mostly a couple of hours

#

mostly when i go to sleep and wake up then it would be offline

#

thats about §-8 hours

#

6 - 8

midnight moat
#

oh I thought it was smaller increments. Can you send me a dm or an email at the store @ tubeszb .com so i can look up your order. thanks.

tulip moat
#

done

#

running 3 hours now no error

tulip moat
#

okay done and done whats next

midnight moat
#

just wait I guess see if it is more stable

tulip moat
#

i started the energy scan again

#

and it replies good

#

guess it's time to hook it on z2m again

midnight moat
#

yeah try z2m again and see how it goes