Giter Club home page Giter Club logo

home-assistant-z-wave-graph's People

Contributors

daringer avatar leoverto avatar magma1447 avatar omenwild avatar tcpaddock avatar tonyh220 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

Watchers

 avatar  avatar  avatar  avatar  avatar

home-assistant-z-wave-graph's Issues

homassistant.remote missing in venv

I´ve installed this in a venv and it triggers an error not finding homeasstiant.remote.
I have however not find how to install this manually..

This results in my log being filled with:

2019-03-31 22:00:00 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `/home/hass/homeassistant/bin/python3 /home/hass/.homeassistant/z-wave-graph.py`, return code: 1
NoneType:

More info here
https://community.home-assistant.io/t/python-run-inside-ha-venv-crashes-modulenotfounderror-no-module-named-homeassistant-remote/102509/7?u=frelev

Any help appreciated.

Doesn't work on 0.77 and up

This script doesn’t work anymore on HA 0.77 and up … I get the following error:

/usr/local/bin/python3 /config/bin/z-wave-graph.py Traceback (most recent call last): File "/config/bin/z-wave-graph.py", line 36, in <module> import homeassistant.remote as remote ModuleNotFoundError: No module named 'homeassistant.remote'

Can't launch py script with hass.io installation

Hi Omen,

Thank you for your work. I tried to extend my hass.io installation with your z-wave-graph script. I followed the instructions in the README.md file.
Unfortunaly, it doesn't work, I received the following message in the Home Assistant logs (dev-info):

Error running command: /usr/bin/python3 /usr/bin/z-wave-graph.py --debug, return code: 2
NoneType: None

Can you help me? Thanks in advance

Python Script does not execute on docker

I've masked my URL, but otherwise, the below is what I get when executing z-wave-graph.py:

Traceback (most recent call last):
  File "z-wave-graph.py", line 337, in <module>
    zwave = ZWave(config, args)
  File "z-wave-graph.py", line 195, in __init__
    m = self.request('/')
  File "z-wave-graph.py", line 213, in request
    response = get(url, headers=headers)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 640, in send
    adapter = self.get_adapter(url=request.url)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 731, in get_adapter
    raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for '*<MyURL>*:8123/api/'

I'm running HA in docker, and I've followed the notes that were left on the readme.

I'm executing the command with /usr/local/bin/python3 /config/bin/z-wave-graph.py, which is where z-wave-graph.py is located in my share. It gives this error when running from the shell. The output from home-assistant.log is:

2019-07-17 13:05:05 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: `/usr/local/bin/python3 /config/bin/z-wave-graph.py`, return code: 1
NoneType: None

json.decoder.JSONDecodeError: Extra data: line 1 column 4 (char 3)

When trying to run the python command I get the following error:

(homeassistant) raspberrypi% python3 ./bin/z-wave-graph.py
Error fetching states
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/remote.py", line 206, in get_states
    item in req.json()]
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 892, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 342, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 4 (char 3)

Check API login works

Check to make sure the HA object actually works. I think that failure to login to the API is the root cause of most of the JSON issues.

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.