Please add Multiple Instances into the config
Multiple instances of what? Home Assistant itself or components/platforms?
Hi @fabaff, Home Assistant itself yes.
As IoT will grow the availability of Multiple Instances is a great option/addition to HA (also with low energy devices in mind).
Have a look at the Multiple Instances docs or the MQTT eventstream component.
GREAT!
What if there is more than 2?
I’m using:
mqtt_eventstream:
publish_topic: MyServerName
subscribe_topic: OtherHaServerName
Not possible at the moment.
So the best option in my case is Multiple Instances.
Where do I need to put the codes? (I’m a beginner…)
import homeassistant.remote as remote
import homeassistant.bootstrap as bootstrap
# Location of the Master API: host, password, port.
# Password and port are optional.
remote_api = remote.API("127.0.0.1", "password", 8124)
# Initialize slave
hass = remote.HomeAssistant(remote_api)
#To add an interface to the slave on localhost:8123
bootstrap.setup_component(hass, 'frontend')
hass.start()
hass.block_till_stopped()
I’ve made a file homeassistant/slave.py after setting things up I’m getting a lot of errors…