How make LoRa sensors work the same way as BL sensors so that they send information to the same mqtt topic, not depending on the gateway name , if moved sensors to a different lora gateway?
This can be managed at the MQTT subscription level by using wildcards. And this is How OMG tell HA to treat the message:
A sensor AA send a temperature, a gateway OMG catch it and publish {“tempc”:21} to home/OMG/LORAtoMQTT/AA
Another gateway OMG2 catch it and publish {“tempc”:21} to home/OMG2/LORAtoMQTT/AA
The controller is subscribed to home/+/LORAtoMQTT/AA and receive both message but know that they belongs to the same sensor AA.
So they key is on the subscriber side, by using wildcard you are getting information from all the gateways for one sensor.
But how do Bluetooth sensors work automatically? So they always send information to the same place no matter which gateway they are located at