Coder Social home page Coder Social logo

ayapejian / node-home-assistant Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 6.0 140 KB

Home Assistant library for node with command line interface

JavaScript 100.00%
api-client cli-utilities command-line-tool event-emitter home-assistant home-automation

node-home-assistant's People

Contributors

ayapejian avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-home-assistant's Issues

Error with node-red

Getting this error in the debug log of node-red

22 Jun 19:00:50 - [error] [server:Home Assistant] TypeError: states.reduce is not a function
    at _get.then.states (/data/node_modules/node-home-assistant/lib/ha-api.js:38:31)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

does not suport oauth

The latest version f home-assistant uses a new authentication system, and the old one is depricated, the new method uses Oauth tokens for any external connection.

Event stream handling significantly slower than httpie

Was troubleshooting delay in message handling and wanted to narrow down the root cause.
after installing node-home-assistant and comparing it with httpie (http --stream http://localhost:8123/api/stream x-ha-access:API_PASS content-type:application/jsonapk) I've noticed a ~2+ second delay on my rpi3 running hassio. I haven't taken a look at the internals of node-home-assistant, but from what I can tell, this seems to be the bottleneck in message handling for the node-red nodes.

My current theory (again without investigating the code) is that the messages I care about are sent with many other messages (zwave updates, group updates, etc.) and these are creating some sort of backlog.

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.