Giter Site home page Giter Site logo

Comments (8)

walthowd avatar walthowd commented on June 26, 2024 1

You can poke around the websocket API at zha_map/devices, or turn the logging to debug and run an on demand scan. Getting that info for one of the problematic devices would be a good start.

Easy to do in Node-RED and you can filter through a switch node:
[{"id":"a76e0e8d.5ad5e","type":"inject","z":"adecbc41.3a6d6","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"600","x":120,"y":2100,"wires":[["d7ef797d.967538"]]},{"id":"d7ef797d.967538","type":"ha-api","z":"adecbc41.3a6d6","name":"API","server":"e2a02faf.48099","protocol":"websocket","method":"get","path":"","data":"{\"type\": \"zha_map/devices\"}","location":"payload","locationType":"msg","x":290,"y":2100,"wires":[["796f2fa1.82641"]]},{"id":"796f2fa1.82641","type":"change","z":"adecbc41.3a6d6","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"zha_map","tot":"msg"},{"t":"move","p":"zha_map.devices","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":2100,"wires":[["48706b66.6f6354"]]},{"id":"48706b66.6f6354","type":"split","z":"adecbc41.3a6d6","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":810,"y":2100,"wires":[["7f0399e.a269168"]]},{"id":"7f0399e.a269168","type":"debug","z":"adecbc41.3a6d6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1010,"y":2100,"wires":[]},{"id":"e2a02faf.48099","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]

from zha-map.

Adminiuga avatar Adminiuga commented on June 26, 2024

Hrm, it is an end device (never understood the point of it being an end device) and apparently it was not found in any of the routers neighbor tables?
There should be neighbours folder in the HA configuration directory. Check if any of the files there contain the IEEE address of this light.

from zha-map.

code-in-progress avatar code-in-progress commented on June 26, 2024

I checked the neighbors files and that IEEE address is not there.

homeassistant@ha:/home/homeassistant/.homeassistant/neighbours $ grep -l 'b0:ce:18:14:03:54:f9:a4' *.txt

from zha-map.

code-in-progress avatar code-in-progress commented on June 26, 2024

So, just to add, I have 14 devices that are showing offline right now. 5 of them, I know about (they are truly offline). The other 9 are all online and available. What's odd is that they are all Sengleds (E11-N1EA bulbs). So, I wonder if there is something unique about them that might be causing it?

from zha-map.

Adminiuga avatar Adminiuga commented on June 26, 2024

Sengleds are unique in a sense, they are mains powered devices but act like a Zigbee End Device, i.e. words requiring a parent device for communication with the zigbee network. Since they require a "parent" device, one of the routers must have them in their neighbor table as a child device.

enable custom_componenst.zha_map debug logging. After the scan pass finishes, it should log a message and do a basic sanity check, like devices in the database but not in the neighbor table and vice versa. Something like

2020-01-24 10:54:04 DEBUG (MainThread) [custom_components.zha_map] Finished neighbour scan pass. Failed: [00:0b:57:ff:fe:xx:xx::xx, 7c:b0:3e:aa:00:xx:xx:xx]
2020-01-24 10:54:04 DEBUG (MainThread) [custom_components.zha_map] Neighbour not in 'zigbee.db': 00:15:8d:00:02:xx:xx:xx - End_Device
2020-01-24 10:54:04 DEBUG (MainThread) [custom_components.zha_map] Neighbour not in 'zigbee.db': 00:15:8d:00:02:xx:xx:xx - End_Device
2020-01-24 10:54:04 DEBUG (MainThread) [custom_components.zha_map] 00:0b:57:ff:fe:xx:xx:xx (Keen Home Inc SV02-612-MP-1.2) was not found in the neighbours tables
2020-01-24 10:54:04 DEBUG (MainThread) [custom_components.zha_map] 00:15:8d:00:02:xx:xx:xx (LUMI lumi.sensor_magnet.aq2) was not found in the neighbours tables
2020-01-24 10:54:04 DEBUG (MainThread) [custom_components.zha_map] 00:15:8d:00:02:xx:xx:xx (LUMI lumi.sensor_magnet.aq2) was not found in the neighbours tables

Maybe that would provide more details. I wonder if Sengleds are doing something not quite standard and don't actually pick a parent device. But how they communicate with the network then???

from zha-map.

lightmaster avatar lightmaster commented on June 26, 2024

Unsure whether or not this is a related issue, but its telling me that my HUSBZB-1 is offline when its definitely not.

from zha-map.

lluiscab avatar lluiscab commented on June 26, 2024

I'm experiencing a similar issue that seems to be related to dmulcahey/zha-network-visualization-card#17 (comment)

My Zigbee Coordinator coordinator seems to not be properly detected as it's device type appears as unk (which I assume from the code means Unknown) and it's offline status also appears as false on the neighbours file which I assume causes the visualization card to not work properly.

Aside from this, everything works perfectly and all my sensors are working so my only guess it that the scanner does not properly recognize the Sonoff Dongle device type.

I have enabled debug mode for this component and I can't see any apparent errors. Maybe someone can take a look.

[homeassistant.core] Bus:Handling <Event call_service[L]: domain=zha_map, service=scan_now, service_data=>
[custom_components.zha_map] Building topology starting from coordinator
[custom_components.zha_map.neighbour] [00:12:4b:00:1c:ce:33:0f]: neighbor request Status: Status.SUCCESS. Response: <Optional Entries=2 StartIndex=0 NeighborTableList=[, ]>
[custom_components.zha_map.neighbour] [00:12:4b:00:1c:ce:33:0f]: Done scanning. Total 2 neighbours
[custom_components.zha_map] Adding 00:12:4b:00:1f:94:2f:30 to all neighbours
[custom_components.zha_map] Adding 00:12:4b:00:1f:91:8d:36 to all neighbours
[custom_components.zha_map] Saving /config/neighbours/neighbours_00124b001cce330f.txt
[custom_components.zha_map] Finished neighbour scan pass. Failed: []
[custom_components.zha_map] 00:12:4b:00:1c:ce:33:0f (Texas Instruments ZNP Coordinator) was not found in the neighbours tables
[custom_components.zha_map] Building topology starting from coordinator
[custom_components.zha_map.neighbour] [00:12:4b:00:1c:ce:33:0f]: neighbor request Status: Status.SUCCESS. Response: <Optional Entries=2 StartIndex=0 NeighborTableList=[, ]>
[custom_components.zha_map.neighbour] [00:12:4b:00:1c:ce:33:0f]: Done scanning. Total 2 neighbours
[custom_components.zha_map] Adding 00:12:4b:00:1f:94:2f:30 to all neighbours
[custom_components.zha_map] Adding 00:12:4b:00:1f:91:8d:36 to all neighbours
[custom_components.zha_map] Saving /config/neighbours/neighbours_00124b001cce330f.txt
[custom_components.zha_map] Finished neighbour scan pass. Failed: []
[custom_components.zha_map] 00:12:4b:00:1c:ce:33:0f (Texas Instruments ZNP Coordinator) was not found in the neighbours tables

from zha-map.

jimford-sudo avatar jimford-sudo commented on June 26, 2024

I’ve installed zha_map and the zha-network-visualisation-card, and am getting a partial map displayed.

The entities are there with the end devices as circles and my coordinator as a rectangle, but there are no linking lines. The rectangle for the coordinator shows ‘offline’.

The coordinator must in fact be online as my zigbee devices all work OK!

The coordinator is a Sonoff ZBridge flashed with Tasmota.

from zha-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.