kk7ds / pynx584

Python library and server for talking to NX584/NX8E interfaces
GNU General Public License v3.0
29 stars 26 forks source link

Install pynx584 via Docker_Compose in Pi4 with Home Assistant (HA) #42

Open egtltd opened 4 years ago

egtltd commented 4 years ago

Dear Dan. I have made a serial to wifi web server with esp8266 listen in 23 port. When install from terminal the pynx584 server in HA all work ok. The pynx584 connect to nx584 via wifi and get the zone status, arm disarm etc. When reboot the HA the installation of pynx584 server is lost. I try to install with Portainer.io via Docker Compose but add-on in home assistant portainer only compose file format version 2 supported at the moment. I try a lot to find something in web but I can't install the pynx584. Please if you can write to me how I can install the pynx584 in Pi4 with home assistant and hassio container. Now i have this 2 containers on my Pi4. hassio_multicast - homeassistant/aarch64-hassio-multicast:2
homeassistant - homeassistant/raspberrypi4-64-homeassistant:0.109.6 image

rayzorben commented 4 years ago

@egtltd

I got it working fairly easily. First you need to install docker-compose via

sudo apt-get update
sudo apt-get install docker-compose

Next, clone this project. I put everything in ~/docker myself.

cd ~/docker
git clone https://github.com/kk7ds/pynx584.git

Then it is just as easy as

cd ~/docker/pynx584
docker-compose up -d
egtltd commented 4 years ago

Dear Ray thank you for your answer. I am noob in Home Assistant. Try to write commands with ssh PuTTY and take this answer: image

next try to find files or folder with name docker an take this: image

when write cd ~/docker take this: image

I make something mistake ???

rayzorben commented 3 years ago

Not sure if you are still looking at this. I decided to use hassos myself the other day and hit the same issue.

Because of that I had to release an aarch64/arm64 version of the docker container. You can find this on docker hub at rayzorben/pynx584

I installed it in portainer on HASS with no issues

hunted5 commented 3 years ago

thank you for creating that Image, I can grab the image, although it is crashing on start and the only log feedback is

No handlers could be found for logger "root"

I am new to docker, I don't know if I have misconfigured the container. Also, how is the interface port and baud for pynx584 configured with it inside the container?

do I need to export an re-import the image?

kk7ds commented 2 years ago

Is this still an issue or can I close this? I don't use hass, but I'm guessing the repo mentioned in #72 might help now?