Giter VIP home page Giter VIP logo

zwavegraphha's Introduction

Archive warning!

This repository is archived as this exact graph was included as part of the Zwavejs2mqtt. If you are using the ZwaveJS, please upgrade to full Zwavejs2mqtt to get this functionality back.

Z-Wave Graph for Home Assistant

This custom panel can display your Z-Wave topology (as available to the system) in Home Assistant (http://www.home-assistant.io) . Old location: https://gist.github.com/AdamNaj/cbf4d792a22f443fe9d354e4dca4de00

Sample screenshot

Requirements

Installation

  • Copy zwavegraph3.js to <config dir>/www directory.
  • Configure with config below.
  • Restart Home-Assistant.

Configuration

Add the following to the Home Assistant configuration.yaml file:

panel_custom:
  - name: zwave-graph-panel
    url_path: zwave-graph
    sidebar_title: Z-Wave Graph
    sidebar_icon: mdi:z-wave
    module_url: /local/zwavegraph3.js
    config:
      # ranker - pick one: network-simplex, tight-tree, longest-path
      ranker: network-simplex
      # edge_visibility - pick one: relevant, all
      edge_visibility: relevant
      # grouping - pick one: z-wave, ungrouped
      grouping: z-wave

Changelog

Version 1.0:

Version 2.0: (02 July 2019)

  • you can now pan the graph by dragging it
  • you can now zoom the graph with your mouse wheel
  • the graph initially is scaled to fill the full screen width
  • added minimap to visualize which part of the graph you can see at the oment on the screen
  • added 2 more tree layouts (click on the top-legend) - they didn't necessarily help me make the graph more manageable for me, but ay be useful to others in their topology
  • added the ability to show all node connections if someone wants to see the full picture of their Z-Wave mesh
  • fixed the broken new line in the node tooltips
  • you can now click on the node to see the entity dialog

Version 2.1: (20 September 2019)

  • added Tools to graph legends so you can easily navigate to Z-Wave Network Management
  • fixed (hopefully) the problem with the graph requiring page reload then navigating to it

Version 2.2: (04 October 2019)

  • ability to turn off node grouping. Having the nodes grouped requires editing locations defined in the zwcfg_*.cfg

Version 2.3: (03 February 2020)

  • Graph background reflects theme background color after page reload
  • Fixed problem where some removed nodes lingering in the device registry could cause wrong node info card to be displayed after clicking on nodes with higher ids

Version 3.0: (21 September 2020)

  • restructure to accomodate for a breaking change in Home Assistant 0.115
  • default graph ranker, edge visibility and grouping settings are now customizable in configuration.yaml
  • move from Gist to GitHub - to enable Pull Requests

Version 3.1: (07 October 2020)

  • Fix for Javscript Error in Log, blank screen - "Uncaught SyntaxError: Unexpected token '<'" (hopefully)
  • Added 'tap' and 'touchstart' event for mobile devices. (Thank you @dennykorsukewitz!)
  • Changed the colors of legends and sub legends. #DarkMode (Thank you @dennykorsukewitz!)

Version 3.2: (08 October 2020)

  • Pinch to zoom added for the benefit of mobile device users
  • Touch has been made somewhat less eager to open the More Info dialog. Doesn't happen on touch start but rather on tap. Otherwise pinch-to-zoom was somewhat of a nightmare.

TODO:

  • support for theming
  • support for HACS

zwavegraphha's People

Contributors

adamnaj avatar dennykorsukewitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zwavegraphha's Issues

Uncaught Syntax Error

I get the following error and a blank screen when clicking on the menu item (Z-Wave Graph)

Logger: frontend.js.latest.202012120
Source: components/system_log/init.py:193
First occurred: 11:51:59 (2 occurrences)
Last logged: 11:52:10

https://XXXXXX.duckdns.org:8123/local/zwavegraph3.js:7:1 Uncaught SyntaxError: Unexpected token '<'

Expected behaviour
I expected to see a map of my z-wave network

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Brave
  • Version 1.19.72 Chromium: 87.0.4280.101 (Official Build) beta (64-bit)

Home Assistant Details
Version 2020.12.1
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.6
Operating System Family Linux
Operating System Version 5.4.79-v7
CPU Architecture armv7l
Timezone Europe/London
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4944
Installed Version 1.9.0
Stage running
Available Repositories 765
Installed Repositories 2
Home Assistant Cloud
Logged In false
Reach Certificate Server ok
Reach Authentication Server ok
Reach Home Assistant Cloud ok
Home Assistant Supervisor
Host Operating System Home Assistant OS 5.8
Update Channel stable
Supervisor Version 2020.12.7
Docker Version 19.03.13
Disk Total 57.8 GB
Disk Used 6.0 GB
Healthy true
Supported true
Board rpi3

Unable to load custom panel from http://myip:8123/local/zwavegraph3.js

Hi

I just installed this tool as per instructions, and if I manually enter the url http://myip:8123/local/zwavegraph3.js in a browser, I do indeed see the file, but when I click on the sidebar button in HA I only get that error or an empty graph depending on the browser.

Tried opera, chrome, safari and the macos app.
Opera and Chrome show the page but the graph is empty.
Safari and the mac app show the error.

How can I debug this issue?
Thanks

Pinch to zoom

On mobile, having pinch to zoom would be amazing! As it is, it can be hard to use on a phone screen.

Error invalid command zwave/network_status

I´m trying to install ZwaveGraphHA but the screen doesn´t show the map. When I check the LOG, appear invalid command zwave/network_status. I use ZwaveJs with official addon in Home Assistant.

SyntaxError

Thanks for the script. However, after following your instructions, I get the following error:

2020-12-30 21:06:23 ERROR (MainThread) [frontend.js.latest.202012120] http://192.168.XXX.XXX:8123/local/zwavegraph3.js:7:0 SyntaxError: expected expression, got '<'

I put the .js file in /config/www/

No longer working ?

Recently upgraded from 0.116 to 2020.12.7. Seems to no longer be working. Bummed, as I really like this feature. Any logs that I can provide to help troubleshoot this ? Also upgraded to Home Assistant OS 5.8.

Panel seems to show my two Z-Wave devices as "Unconnected". Strange, as I can still operate those Z-Wave devices just fine.

image

Syntax error

Hello,
I've just put the script in the www dir, added the statements in config, and rebooted, and am seeing this error:

(myprivateURL)nabu.casa/local/zwavegraph3.js:7:0 SyntaxError: expected expression, got '<'

I'm assuming this may be because I'm running the Z-Wave JS integration.
Are there plans to make this work?

It appears it may also be working in the MQTT version, which I'm not running.

Thank you

Just a blank window.

Installed per the instructions.

Running Home Assistant 2022.3.7 on ODROID-N2+
Z-wave JS integration

I get the icon in the sidebar, but clicking it just gives me a blank page.

I played around with the configuration YAML (changed around the available variables), but it's the same.

No errors in the logs.

Dos this work with Zwave JS

Hi ,

I have just install this grpah tool and it does not display anything other that a set of key

I f click to netowrk managment it asks to migrate to Zwave JS which I am using already

So I am curious if this is geared to work with Zwave JS

Vas

Rebuild to core Z-wave JS?

Hi!

having enjoyed your Graph for a very long time, now is the moment to say goodbye I fear. As you will be aware, HA has put the Z-wave integration in deprecated state, and is going forward with the Z-Wave JS add-on and integrations.

Out of the box, this has as a consequence the Graph is now also deprecated. Unfortunately.

Is there any change you will be able to update it to the core JS integration handling as per HA 2021.2?

Thanks!

Not working on OpenZwave ??

I have this error:

Logger: homeassistant.components.websocket_api.http.connection.1743651768
Source: components/websocket_api/connection.py:84
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 17:51:08 (1 occurrences)
Last logged: 17:51:08

Received invalid command: zwave/network_status

And screen look like this

image

Like skeleton is rendered but without anything from zwave as the network status command failed and using openzwave (beta) on Home Assistant 0.116.2.

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.