ayapejian / node-home-assistant Goto Github PK
View Code? Open in Web Editor NEWHome Assistant library for node with command line interface
Home Assistant library for node with command line interface
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)
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.