vladbabii / homeassistant-socat

Home Assistant with socat for remote zwave
15 stars 8 forks source link

Use s6-overlay to handle the startup of socat and Home Assistant #2

Open shbatm opened 5 years ago

shbatm commented 5 years ago

Sharing some changes I made for my personal use. I made some modifications to use s6-overlay to manage socat and HASS startup.

I also modified the Dockerfile to use Alpine Linux's apk add instead of Ubuntu's apt-get install since the new Home Assistant images are based on Alpine. In addition, you can provide --build-arg BUILD_FROM=... in your docker build command to specify the base Home Assistant image to use. For example, I use --build-arg BUILD_FROM=homeassistant/qemuarm-64-homeassistant for my system.

vladbabii commented 5 years ago

Thank you for all the work. I'll test these in the next couple of days and merge the pull request (after a quick look I don't expect any issues).

tynor88 commented 5 years ago

@vladbabii Any update on this?

shbatm commented 5 years ago

All, I am not planning to continue with this PR. If anyone else would like to make the changes and incorporate the code, please feel free.

I ended up switching to use usbip instead of socat and found that I can pass through my device from the host using the /dev/serial/by-id/ path into HASS.io, therefore, this is no longer needed in my setup.

tynor88 commented 5 years ago

Can you share your config with usbip or point me to a guide. Thanks.

søn. 9. jun. 2019 23.33 skrev shbatm notifications@github.com:

All, I am not planning to continue with this PR. If anyone else would like to make the changes and incorporate the code, please feel free.

I ended up switching to use usbip instead of socat and found that I can pass through my device from the host using the /dev/serial/by-id/ path into HASS.io, therefore, this is no longer needed in my setup.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vladbabii/homeassistant-socat/pull/2?email_source=notifications&email_token=AAV6P7Z4JQD6XQUSCJO6C4TPZVZI5A5CNFSM4GT3RGF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXISWJA#issuecomment-500247332, or mute the thread https://github.com/notifications/unsubscribe-auth/AAV6P75ADWIKVTMKJRSNOWTPZVZI5ANCNFSM4GT3RGFQ .

shbatm commented 5 years ago

See this thread here:

https://community.home-assistant.io/t/rpi-as-z-wave-zigbee-over-ip-server-for-hass/23006/75?u=shbatm