BLE Gateway with Home assistant

Dear Users,

The software you made was great i used it with Node Red.
I switched over too Home assistant.

I flashed my ESP32 the first time with the standard firmware without editing anything (i hate platforIO always errors)

I downloaded latest sources, loaded the folder, build worked great

Now i wan’t to enable ZmqttDiscovery

The wiki states
" So as to enable HASS auto discovery with MQTT you have to uncomment [ZmqttDiscovery] in User_config.h "

If i uncomment like this
define ZmqttDiscovery “HADiscovery”//ESP8266, Arduino, ESP32, Sonoff RF Bridge

And rebuild i get error:

In file included from D:/Backup/OpenMQQTGateway/OpenMQTTGateway-0.9.5/main/main.ino:28:0:

main\User_config.h:229:1: error: ‘define’ does not name a type
define ZmqttDiscovery “HADiscovery” ESP32
D:/Backup/OpenMQQTGateway/OpenMQTTGateway-0.9.5/main/main.ino: In function ‘void loop()’:
D:/Backup/OpenMQQTGateway/OpenMQTTGateway-0.9.5/main/main.ino:1195:18: error: ‘timer_sys_measures’ was not declared in this scope
if (now > (timer_sys_measures + (TimeBetweenReadingSYS * 1000)) || !timer_sys_measures) {
*** [.pio\build\esp32dev-ble\src\main.ino.cpp.o] Error 1

Can someone tell me what is really nescarry to set up?
(i think also wifi credentials + mqtt ip/port/user/password is nesscary)
But i tought to build it in steps else i get xxxxx errors


It should be:
#define ZmqttDiscovery “HADiscovery”//ESP8266, Arduino, ESP32, Sonoff RF Bridge

Sorry i was sleepy, i thought # had to removed too sorry!
Working like a charm now!

It only publish to home assistant: miflora1, miflora 2, miflora 3 etc
And you can’t see the MAC in entities in homeassistant, so you have to compare mqtt values with help of mqtt explorer to identify which sensor is which plant