All Projects → OmenWild → Home Assistant Z Wave Graph

OmenWild / Home Assistant Z Wave Graph

Licence: gpl-3.0
Graph your Z-Wave mesh automatically from within Home Assistant.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Home Assistant Z Wave Graph

Home Assistant Configuration
My Home Assistant Config. For more Information visit ->
Stars: ✭ 102 (+100%)
Mutual labels:  home-assistant, homeassistant, zwave
Homeassistant Config
Configuration for @brianjking & @KinnaT's Home Assistant Installation
Stars: ✭ 80 (+56.86%)
Mutual labels:  home-assistant, homeassistant, zwave
Addon Zwave2mqtt
Z-Wave to MQTT - Home Assistant Community Add-ons
Stars: ✭ 58 (+13.73%)
Mutual labels:  home-assistant, homeassistant, zwave
ha-config-ataraxis
My Home Assistant Configs. If you like what you see, please ⭐️my repo. It would encourage me a lot 🤘
Stars: ✭ 146 (+186.27%)
Mutual labels:  home-assistant, zwave, homeassistant
Unifiprotect
Control and monitor your Unifi Protect Cameras from Home Assistant
Stars: ✭ 279 (+447.06%)
Mutual labels:  home-assistant, homeassistant
Awesome Home Assistant
A curated list of amazingly awesome Home Assistant resources.
Stars: ✭ 3,487 (+6737.25%)
Mutual labels:  home-assistant, homeassistant
Home Assistantconfig
🏠 Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to ⭐ it. Updated FREQUENTLY!
Stars: ✭ 3,687 (+7129.41%)
Mutual labels:  home-assistant, homeassistant
Repository
Home Assistant Community Add-ons
Stars: ✭ 520 (+919.61%)
Mutual labels:  home-assistant, homeassistant
ha-zoom-automation
Custom Home Assistant component for Zoom. Tracks when you are connected to a Zoom call by default but may allow you to track more.
Stars: ✭ 47 (-7.84%)
Mutual labels:  home-assistant, homeassistant
Bruh3 Home Assistant Configuration
(OBSOLETE) BRUH3 Home Assistant Configuration
Stars: ✭ 347 (+580.39%)
Mutual labels:  home-assistant, zwave
Home Assistant Config
🏠 My Home Assistant configuration, a bit different that others :) Be sure to 🌟 this repository for updates!
Stars: ✭ 1,050 (+1958.82%)
Mutual labels:  home-assistant, homeassistant
Home assistant
My personal Home Assistant setup - Running on a HassOS VM.
Stars: ✭ 270 (+429.41%)
Mutual labels:  home-assistant, homeassistant
Home Assistant Config
🏠 Fully documented Home Assistant configuration for a smart-looking place. 😎 Be sure to ⭐️ my repo and copy ideas!
Stars: ✭ 258 (+405.88%)
Mutual labels:  home-assistant, zwave
Vacuum Card
Vacuum cleaner card for Home Assistant Lovelace UI
Stars: ✭ 295 (+478.43%)
Mutual labels:  home-assistant, homeassistant
addon-mopidy
Mopidy - Home Assistant Community Add-ons
Stars: ✭ 42 (-17.65%)
Mutual labels:  home-assistant, homeassistant
Homeassistant
Home Assistant Configuration Files and Documentation
Stars: ✭ 395 (+674.51%)
Mutual labels:  home-assistant, homeassistant
Homeassistant
Example Home Assistant Configs
Stars: ✭ 846 (+1558.82%)
Mutual labels:  home-assistant, homeassistant
Replaylightshistory
AppDaemon App for Home Assistant to replay light switch history when no one is home.
Stars: ✭ 17 (-66.67%)
Mutual labels:  home-assistant, homeassistant
Smarthome
SmartHome: firmware per ESP8266 - Casa domotica
Stars: ✭ 28 (-45.1%)
Mutual labels:  home-assistant, homeassistant
Ozw Network Visualization Card
Lovelace custom card for visualizing the ZWave network with the OpenZWave (beta) integration.
Stars: ✭ 30 (-41.18%)
Mutual labels:  homeassistant, zwave

home-assistant-z-wave-graph

Graph your Z-Wave mesh automatically from within Home Assistant.

Graph

Update Info

Also 2019-07-18:

I am pretty much deprecating this project. With the newest release, Home Assistant Community Z-Wave graph (without the python) has pretty much nailed it. Doing it without the Python makes integration significantly easier and is the route I should have taken from the beginning but my JavaScript is weak and my Python is stronger.

I wish they had a GitHub repository, but this gist seems to have the magic: https://gist.github.com/AdamNaj/cbf4d792a22f443fe9d354e4dca4de00

2019-07-18:

  • BREAKING: now requires a long lived token:
    • HA -> your user profile -> CREATE TOKEN (at the bottom)
    • Update config/shell_commands/z-wave-graph.yaml and add --token="YOUR_TOKEN_HERE"
  • The default config/shell_commands/z-wave-graph.yaml no longer tries to guess where the appropriate Python 3 is. Replace /FULL/PATH/TO/HA's/python3 with the correct path.
  • If the script cannot access your HA instance at http://localhost:8123 then you need to add --url=http://YOUR_URL_HERE:PORT to config/shell_commands/z-wave-graph.yaml
  • Removed the requirement for http in the HA configuration.yaml file.

2018-09-17:

  • Update to use the REST API as required by 0.77+.

2018-02-03:

  • Can work with the Docker image, but requires some hand-tuning. See the Docker Image section below.
  • Show the averageRequestRTT in () under the node name and in the mouse-over.
  • Revert the changes to make the edge width dependent on RTT. It was just too messy and did not add anything.
  • Edge width is now fixed. This helps see where the connections go when hovering.

2018-01-31:

2018-01-26:

  • Default to no SSL for the API connection. You will need to add --ssl to your invocation if your HA uses SSL directly (i.e. not through a proxy).

2018-01-25:

  • No longer using Graphviz, neither the system package nor the Python module are required.
  • config/www/svg-pan-zoom.min.js is no longer needed, you may delete it.

Installation Prerequisite

Install the networkx Python module from INSIDE your venv if you use one:

(venv-hass) [email protected]: pip3 install networkx

Suggested Integration

Home Assistant Configuration

Requires the following secret for the iframe url:

z_wave_graph_url: http://YOUR_DOMAIN_HERE:8123/local/z-wave-graph.html

The Python script loads your HA configuration to try to pull out the details it needs. Some installations require more tweaks. See ~/z-wave-graph/bin/z-wave-graph.py --help for command line options.

Put all the files in their correct location (assuming you're using a split configuration):

automation: !include_dir_merge_list automations/
shell_command: !include_dir_merge_named shell_commands/
panel_iframe: !include_dir_merge_named panel_iframe/

Otherwise you will have to put the fiddly bits into the right place by hand.

Docker Image

Thanks to a diligent HA forum member the mystery of the script not running in Docker images has been solved. One fix is in the code. The other you will have to apply at your end to the shell_command:

z_wave_graph: /usr/local/bin/python3 /config/**<YOUR-PATH>**/z-wave-graph.py

Running

By default it is suppose to run every 5 minutes (config/automations/z-wave-graph.yaml) loading the current Z-Wave mesh. I experimented with on startup and shutdown, but the Z-Wave mesh did not exist at that point so the results were wrong.

Graph

The graph is draggable and zoomable (mouse wheel).

The top node should be your Z-Wave controller, identified by primaryController in capabilities.

All nodes have mouse-over information with details. A + after the Node: id indicates a Z-Wave plus device.

The diffent levels should correspond to the hops in your mesh. You can click on a node to hilight the possible routes through other nodes.

Any battery powered devices will be rectangles and will have their battery level percent displayed in the mouse-over.

Algorithm

The nodes and their neighbors are pulled from the HA API. networkx is then used to find all the shortest paths for each node back to the Z-Wave hub. Those edges are then graphed.

This only shows the route possibilites as there is no way to know exactly what route any particular node uses.

Notes

Note: originally based on home-assistant-graph so parts may look very familiar

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].