Using two gateways MQTT
- 
					
					
					
					
Hello!!
As the title I would use for my control Domoticz two Gateway MQTT, being my Etherneth network very well distributed.is it possible to use 2 Gateway MQTT with a Domoticz controller ???
Thank you!!
 - 
					
					
					
					
@sindrome73 yes
 - 
					
					
					
					
Grazie mille!!
Thanks!!
 - 
					
					
					
					
@mfalkvidd How does the system knows which gateway is?
 - 
					
					
					
					
I do not understand. Tell me I'm available
 - 
					
					
					
					
@gohan I don't know but I guess it does it the same way as it does when using multiple ethernet gateways, multiple serial gateways and/or two different gateways.
 - 
					
					
					
					
It's not actually the same because the mqtt broker is only one, the controller can not identify the gateway if they are publishing to same topic, unless there is a way to assign an ID for each gateway. Right?
 - 
					
					
					
					
@gohan oh, now I understand. Yes, if you use the same broker you would need to set different topics.
// Set this node's subscribe and publish topic prefix #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out" #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
 - 
					
					
					
					
The problem is that domoticz only works with its own fixed topics. It may be worth trying to see if adding a unique sub topic for each gateway, the controller can still recognize the mysensors protocol