binsentsu / am43-ctrl

Node Util for controlling an AM43 Blinds Drive Cover, either over MQTT or via a HTTP API
44 stars 25 forks source link

Add support of Home Assistant addon #10

Open T-REX-XP opened 4 years ago

T-REX-XP commented 4 years ago

Hi. Thanks for you contribution, can you add support the Home Assistant addons structure for this repository ?

https://developers.home-assistant.io/docs/hassio_addon_config/ Thanks

binsentsu commented 4 years ago

Hi, isn't this only useful if you would run am43ctrl on the same unit your homeassistant is running on? I noticed that the BLE range of these devices is pretty awful, that's why i'm running am43 on a separate rpi close to the blinds. If your willing to contribute this through your fork, feel free to fire a pull request.

T-REX-XP commented 4 years ago

Hi, isn't this only useful if you would run am43ctrl on the same unit your home assistant is running on?

You are right. But I've just wanted to run your project in the easiest way, using docker env. There are pros

If your willing to contribute this through your fork, feel free to fire a pull request.

Yesterday I have tried to build addon based on your project but I can't build the docker image based on alpine Linux(by default for Hass addon). There are some problems with node-USB, etc..

I noticed that the BLE range of these devices is pretty awful, that's why i'm running am43 on a separate rpi close to the blinds

In my opinion, the best way to do it is by using OpemMqttGateway, or something else. Pros:

Cons:

binsentsu commented 4 years ago

Sorry, but I'm not that acquainted with docker stuff. OpenMQTTGateway indeed only supports reading from BLE as far as I can see. In my opinion an ESPHome solution would be the way to go for running on an ESP32. But this requires a rewrite to C++ ...

T-REX-XP commented 4 years ago

Hi. I have found the cool project, that is the custom plugin for ESP Home, We can use it for controlling am43 blinds. Here is the link Let's port your code to the c++?))