Giter VIP home page Giter VIP logo

home-assistant-graph's People

Contributors

happyleavesaoc 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-graph's Issues

Graph doesn't display binary_sensor.switch

Hey happy, i have binary_sensor.switches from xiaomi in use, they are not getting drawn on the graph :-(.

Is that intentionally, or just missing in the code?

It looks like this:

alias: Turn couchlight on/off
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_xxxxxxx
click_type: single
action:
service: light.toggle
entity_id: light.living_room_couch

possible click_types: single, double and hold.

Thank you a lot.

Installation error

Hi,

I want to test your module, but I can't install it.
Here is the output:

pi@raspberrypi:/home/hass/.homeassistant $ sudo pip install hagraph
Downloading/unpacking hagraph
Downloading hagraph-1.0.1.tar.gz
Running setup.py (path:/tmp/pip-build-Q8s9oR/hagraph/setup.py) egg_info for package hagraph
Downloading/unpacking networkx==1.11 (from hagraph)
Downloading networkx-1.11-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Downloading/unpacking homeassistant>=0.37 (from hagraph)
Downloading homeassistant-0.37.1-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded
Downloading/unpacking pygraphviz>=1.4rc1 (from hagraph)
Downloading pygraphviz-1.4rc1.tar.gz (105kB): 105kB downloaded
Running setup.py (path:/tmp/pip-build-Q8s9oR/pygraphviz/setup.py) egg_info for package pygraphviz
warning: no previously-included files matching '~' found anywhere in distribution
warning: no previously-included files matching '
.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
no previously-included directories found matching 'doc/build'
Downloading/unpacking decorator>=3.4.0 (from networkx==1.11->hagraph)
Downloading decorator-4.0.11-py2.py3-none-any.whl
Downloading/unpacking jinja2>=2.8 (from homeassistant>=0.37->hagraph)
Downloading Jinja2-2.9.5-py2.py3-none-any.whl (340kB): 340kB downloaded
Downloading/unpacking typing<4,>=3 (from homeassistant>=0.37->hagraph)
Downloading typing-3.5.3.0.tar.gz (60kB): 60kB downloaded
Running setup.py (path:/tmp/pip-build-Q8s9oR/typing/setup.py) egg_info for package typing
Downloading/unpacking async-timeout==1.1.0 (from homeassistant>=0.37->hagraph)
Downloading async-timeout-1.1.0.tar.gz
Running setup.py (path:/tmp/pip-build-Q8s9oR/async-timeout/setup.py) egg_info for package async-timeout
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-Q8s9oR/async-timeout/setup.py", line 1, in
import pathlib
ImportError: No module named pathlib
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-Q8s9oR/async-timeout/setup.py", line 1, in
import pathlib
ImportError: No module named pathlib

Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-Q8s9oR/async-timeout
Storing debug log for failure in /root/.pip/pip.log

Can you help me with the installation?

Best regards.

Alexa intents

Line 223 expects "alexa" to have "intents" as a key but that's all been changed up recently. The problem is made worse in that the script doesn't test for the key and tries it directly, causing a KeyError.

Doesn't work anymore

HA version: 0.67

I tried to make the graph working again, i just get errors:

Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.5/dist-packages/hagraph/__main__.py", line 31, in <module>
    main()
  File "/usr/local/lib/python3.5/dist-packages/hagraph/__main__.py", line 26, in main
    graph = make_graph(conf)
  File "/usr/local/lib/python3.5/dist-packages/hagraph/__init__.py", line 254, in make_graph
    add_core_edges(conf, graph)
  File "/usr/local/lib/python3.5/dist-packages/hagraph/__init__.py", line 215, in add_core_edges
    add_automation(data, graph)
  File "/usr/local/lib/python3.5/dist-packages/hagraph/__init__.py", line 192, in add_automation
    if isinstance(data['trigger'], list):
TypeError: list indices must be integers or slices, not str

Last working version was last year, august. Fits more or less the timestamp of the repo update.

I will update soon to the latest ha version, when all tests in the test environment of my automations are passed.

Great work, would be cool if i would be able to continue using it.

Errors after install

Hi

I am getting the following error message and would love to get your input

Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__main__.py", line 30, in <module>
    main()
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__main__.py", line 25, in main
    graph = make_graph(conf)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__init__.py", line 242, in make_graph
    add_core_edges(conf, graph)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__init__.py", line 212, in add_core_edges
    add_alexa(intent, data, graph)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__init__.py", line 163, in add_alexa
    check = entities_or_service(data['action'])
KeyError: 'action'

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.