micolous / cbus

Use Python to communicate with a Clipsal C-Bus PCI or CNI! Includes MQTT bridge (for Home Assistant), PCI simulator, and reverse engineering notes.
http://cbus.readthedocs.org/
GNU Lesser General Public License v3.0
49 stars 27 forks source link

Update installing.rst #12

Closed nworbnhoj closed 2 years ago

nworbnhoj commented 4 years ago

--device /dev/ttyUSB0 is required to bind the serial port on the docker host device --network hassio is the default docker bridge network for Home Assistant

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 63.986% when pulling cafc22d0358f41c8dbd895ce9b6e1c82ca59388a on nworbnhoj:patch-1 into 8173a866b64858df463382d279f5e88fb052585b on micolous:master.

micolous commented 4 years ago

It sounds like that the IP 172.30.33.0 isn't guaranteed to be consistent; eg: I might be using this subnet somewhere else in my network, which generally causes Docker to avoid it. I've used RFC 5737 reserved IPs where something is "unknown".

As you probably guessed, I haven't looked at running these containers on hassio as yet - the C-Bus+HA environment I've looked after has HA running in a Docker container on a non-hassio Linux distribution, and has other non-HA-related containers running in it.

I'm not sure what to do about this; maybe the answer is to provide images that play nicely with hassio, but that'll take more effort. 😆

nworbnhoj commented 4 years ago

I am new to HA, Docker, MQTT and cmqttd - and yes I am perhaps coming up against some of the challenges that you allude to in running cmqttd containers on hassio. Thank you very much for the work you have dome thus far in implementing a VERY welcome open-source cbus alternative.

I wonder if it might be possible to write a script to query the Docker DNS in order to identify any mqtt brokers on the hassio network, and then to configure cmqttd accordingly before launching? Do you think that this might be an approach worth pursuing?

micolous commented 2 years ago

I've incorporated your suggested change as 1d25bbb. Thanks!