At first glance, the mqtt eventstream looks as a good solution. But I am not sure how that is supposed to work?
This looks so wrong to me: subscribe_topic: OtherHaServerName
There is no configuration for the external broker as for hostname, the port, username and password?
the first item connects to the HiveMQ MQTT Broker (mqtt in) and the second one connects to the local mosquitto broker (mqtt out).
But nothing happens after the deploy. No new MQTT entity is created for my temperature sensor…
I don’t know how helpful this is but this is my setup. I have Home Assistant Core connected to a docker mqtt broker. I then have solar assistant (with its own broker) that I also wanted to connect to home assistant. To do this, I used node red with the following:
The first node is the mqtt in node “Solar Assistant Create Home assistant sensors”. The topic is “homeassistant/#” and the configured broker is from solar assistant. This creates the sensors from solar assistant in to home assistant
The second node mqtt node in has the topic “solar assistant/#” and the configured broker is from solar assistant, which takes the sensor values that come from solar assistant and use it to update the sensors that the 1st node makes in home assistant
The mqtt out node just has the server set as the home assistant broker (in my case, the docker mqtt server) and it takes the topic and payload from the other 2 nodes