Hi there,
I´m using HomeAssistant with a lot of Zigbee devices and now it´s, cause of the range, time for something new.
Setup:
- Home Assistant via docker
- zigbee2mqtt via docker
- mosquitto via docker
Hardware:
- Heltec ESP LoRa 868MHZ, flashed via webpage
- Makerfab Lora Temperature/ Humidity/ Soil Moisture Sensor V3 868mhz (Link)
I think I have configured the OMG correct, cause I can see it in the Mosquitto-Log:
Serial-Output OMG:
15:04:56.755 -> *WM: [1] AutoConnect
15:04:56.755 -> *WM: [2] ESP32 event handler enabled
15:04:56.803 -> *WM: [1] AutoConnect: ESP Already Connected
15:04:56.803 -> *WM: [1] STA static IP:
15:04:56.803 -> *WM: [2] setSTAConfig static ip not set
15:04:56.803 -> *WM: [1] AutoConnect: SUCCESS
15:04:56.803 -> *WM: [1] STA IP Address: XXXXX
15:04:58.336 -> N: LORA_SCK: 5
15:04:58.336 -> N: LORA_MISO: 19
15:04:58.336 -> N: LORA_MOSI: 27
15:04:58.336 -> N: LORA_SS: 18
15:04:58.336 -> N: LORA_RST: 14
15:04:58.336 -> N: LORA_DI0: 26
15:04:58.336 -> N: OpenMQTTGateway modules: ["LORA"]
15:04:58.336 -> N: ************** Setup OpenMQTTGateway end **************
15:04:58.336 -> W: MQTT connection...
15:04:58.383 -> N: Connected to broker
15:04:58.383 -> N: Send on /SYStoMQTT msg {"uptime":4,"version":"v0.9.13","freemem":250088,"mqttport":"1883","mqttsecure":false,"freestack":4632,"rssi":-67,"SSID":"300g Aufschnitt","BSSID":"E0:28:6D:5F:05:1C","ip":"192.168.200.52","mac":"78:21:84:99:9F:50","modules":["LORA"]}
Also Mosquitto sees the Gateway:
1657285509: home/OpenMQTTGateway_ESP32_LORA/LWT
1657285509: Sending CONNACK to OpenMQTTGateway_ESP32_LORA (0, 0)
1657285509: Received PUBLISH from OpenMQTTGateway_ESP32_LORA (d0, q0, r1, m0, 'home/OpenMQTTGateway_ESP32_LORA/LWT', ... (6 bytes))
1657285509: Sending PUBLISH to 4YKTS8ERh6RY6McJ6VrGHX (d0, q0, r0, m0, 'home/OpenMQTTGateway_ESP32_LORA/LWT', ... (6 bytes))
1657285509: Sending PUBLISH to mqtt-explorer-dd2f2e75 (d0, q0, r0, m0, 'home/OpenMQTTGateway_ESP32_LORA/LWT', ... (6 bytes))
1657285509: Received PUBLISH from OpenMQTTGateway_ESP32_LORA (d0, q0, r1, m0, 'home/OpenMQTTGateway_ESP32_LORA/version', ... (7 bytes))
1657285509: Sending PUBLISH to mqtt-explorer-dd2f2e75 (d0, q0, r0, m0, 'home/OpenMQTTGateway_ESP32_LORA/version', ... (7 bytes))
1657285509: Received SUBSCRIBE from OpenMQTTGateway_ESP32_LORA
1657285509: home/OpenMQTTGateway_ESP32_LORA/commands/# (QoS 0)
1657285509: OpenMQTTGateway_ESP32_LORA 0 home/OpenMQTTGateway_ESP32_LORA/commands/#
1657285509: Sending SUBACK to OpenMQTTGateway_ESP32_LORA
1657285509: Received SUBSCRIBE from OpenMQTTGateway_ESP32_LORA
1657285509: firmware_update (QoS 0)
1657285509: OpenMQTTGateway_ESP32_LORA 0 firmware_update
1657285509: Sending SUBACK to OpenMQTTGateway_ESP32_LORA
But that´s it - nothing more. When I toggle the sensor to send a lora-message, nothing shows up in the log from mosquitto. The sensor comes with preflashed software, but rather sure that it works, cause I can see at the serial that data is sent:
15:10:22.176 -> 3.30VID010442 REPLY : SOIL INEDX:0 H:50.94 T:25.06 ADC:929 BAT:1023
So… what do I do wrong here?