Home Assistant REST API Node.js Wrapper

I’d like to share with the community something I put together while I was working on a personal Node.js app. I wrote a wrapper around the Home Assistant REST API in Node.js. I’ve just published the first version to NPM. If you’re writing something in Node.js, this may be of interest to you.

If you find issues while using it or want to help contribute, here is the code on GitHub:

I still have a lot more I want to do with this module, including fully testing it. Hopefully it is helpful to others.

2 Likes

Great stuff. I’m sure I’ll be using this in the near future.

Seems great!
I’ll try it too.

Any one’s used it yet?

I just wrote a small proof of concept discord bot listening and responding to commands. It works.

Hey, I’m trying to do the same. How did you manage to “listen” to homeassistant events with this wrapper? Did you just call a event request every second/whatever time? I feel very uncomfortable with this because of too many requests or too late response time.

Hi!
I’m interesting using that wrapper ton create my automations with NodeJS instead of HA Automation or Node-red.
But I’m wondering the same thing as kjell5317 asked : how do you make your app always running and listening to all the entity events ?