If i add the sensor as Thing i get the following message in the openhab Logfile:
2023-01-12 09:13:06.696 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'A4C138E18ECF_2Dbatt#sensor', because channel type 'mqtt:A4C138E18ECF_2Dbatt_sensor' could not be found.
2023-01-12 09:13:06.700 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'A4C138E18ECF_2Dvolt#sensor', because channel type 'mqtt:A4C138E18ECF_2Dvolt_sensor' could not be found.
2023-01-12 09:13:06.704 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'A4C138E18ECF_2Dtemp#sensor', because channel type 'mqtt:A4C138E18ECF_2Dtemp_sensor' could not be found.
2023-01-12 09:13:06.707 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channel 'A4C138E18ECF_2Dhum#sensor', because channel type 'mqtt:A4C138E18ECF_2Dhum_sensor' could not be found.
2023-01-12 09:13:06.710 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'A4C138E18ECF_2Dbatt' for thing type 'mqtt:homeassistant_A4C138E18ECF:d8bc7a043f:A4C138E18ECF', because channel group type 'mqtt:A4C138E18ECF_2Dbatt' could not be found.
2023-01-12 09:13:06.712 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'A4C138E18ECF_2Dvolt' for thing type 'mqtt:homeassistant_A4C138E18ECF:d8bc7a043f:A4C138E18ECF', because channel group type 'mqtt:A4C138E18ECF_2Dvolt' could not be found.
2023-01-12 09:13:06.715 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'A4C138E18ECF_2Dtemp' for thing type 'mqtt:homeassistant_A4C138E18ECF:d8bc7a043f:A4C138E18ECF', because channel group type 'mqtt:A4C138E18ECF_2Dtemp' could not be found.
2023-01-12 09:13:06.717 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'A4C138E18ECF_2Dhum' for thing type 'mqtt:homeassistant_A4C138E18ECF:d8bc7a043f:A4C138E18ECF', because channel group type 'mqtt:A4C138E18ECF_2Dhum' could not be found.
For more regular measurement, I advise to flash the LYWSD03MMC with ATC or PVVX custom firmware, it should take less than 5 minutes and can be done over the air.
The stock LYWSD03MMC requires a bind key to read the data or a BLE connection that consumes battery life.
This seems to be still an issue in the actual version 1.5 of OpenMQTTGateway binary liligo-rtl_433. It would be great to have the Autodiscovery running for OpenHAB.
This would be a great option to have in the prebuild binary. I tried several steps to compile it with the option, but could not get it running on the board.
I tried it several times with a my_env.ini that contained the -DOpenHABDiscovery=true as the only difference. The compilation ran without errors, but I couldn’t upload the binary from platformio, because no ports were shown in my two Lenovo laptops.
Later I tried to upload the binaries with esptool from Linux, but got an error. With the expressif framework on Windows 10 I could upload successfully, but the software did not start, no Wifi network appeared on my mobile.
After a reboot of the device ist was running and I could configure my SSID and MQTT broker.
Before I had the additional boot_app0.bin selected. I found it in other sources for uploading to ESP32. Could this have been wrong?
This was my environment in my_env.ini: