I’m trying to develop my own MQTT based sensor. I’m following this page and trying to use the device discovery, but found out that the example in this page doesn’t work at all. After scratching my head for multiple hours I noticed the following error message (it was hard to notice without enabling debug log):
2024-12-26 09:49:54.697 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device/ea334450945afc/config (qos=0): b'{\n "dev": {\n "ids": "ea334450945afc",\n "name": "Kitchen",\n "mf": "Bla electronics",\n "mdl": "xya",\n "sw": "1.0",\n "sn": "ea334450945afc",\n "hw": "1.0rev2",\n },\n "o": {\n "name":"bla2mqtt",\n "sw": "2.1",\n "url": "https://bla2mqtt.example.com/support",\n },\n "cmps": {\n "some_unique_component_id1": {\n "p": "sensor",\n "device_class":"temperature",\n "unit_of_measurement":"\xc2\xb0C",\n "value_template":"{{ value_json.temperature}}",\n "unique_id":"temp01ae_t",\n },\n "some_unique_id2": {\n "p": "sensor",\n "device_class":"humidity",\n "unit_of_measurement":"%",\n "value_template":"{{ value_json.humidity}}",\n "unique_id":"temp01ae_h",\n }\n },\n "state_topic":"sensorBedroom/state",\n "qos": 2,\n}'
2024-12-26 09:49:54.699 WARNING (MainThread) [homeassistant.components.mqtt.discovery] Integration device is not supported
I’m using official home assistant docker image “homeassistant/home-assistant:stable”, which has core version as “2024.8.3”. Does anyone know how to enable the device support?
I know I can go with per-component discovery but would prefer with device discovery per documentation.
Thanks