Hey Everyone, I am trying to get a master/slave HA instance going with 2 raspberry pis. I wasn’t able to get the python examples that are posted around under the multiple instances instructions to work, but I found that if I start both instances, then use the Rest API to subscribe the slave to the master for event-forwarding, then the master will show component status from the slave.
Here are the issues
-
- I’m trying to use this setup for a garage door controller. While the master does show the cover component on the dashboard, it will not trigger the slave pi to open/close. If I use the same rest-api call to forward master events to the slave, it will trigger, but go into an infinite loop because they are forwarding the same event.
-
- While the state sensor works from the slave (when I move the magnet sensor apart, it forwards a state event, and when I put them together, it gives another state event), the automation rule from the master HA instance only says the state is unknown. If I look at states through the web frontend, it does show cover.garage_door as closed.
Here is the automation rule for reference:
- alias: Garage Door
trigger:
platform: state
entity_id: cover.garage_door
action:
- service: notify.wb_slack
data:
message: ':parking: Garage Door {{ states("cover.garage_door") }}'
And the response in slack:
:parking: Garage Door unknown
the API doesn’t return any value for cover.garage_door. HOWEVER the master frontend/dev-state does show this:
cover.garage_door open friendly_name: Garage Door
Anyone have any ideas? I’m open to creative workarounds if needed, but would love if I’m just missing something.
Thanks!