I’m trying to create a mqtt sensor, which will be added to the entity registry, and the device from which it comes will be added to the device registry. According to this my payload for the topic config looks like this:
{
"name": "Sensor 06",
"unique_id": "001122334455-sensor-06",
"device": {
"identifiers": ["001122334455"],
"connections": [{
"type": "mac",
"identifier": "00:11:22:33:44:55"
}],
"manufacturer": "Test",
"model": "001",
"name": "Test 001",
"sw_version": "9.9.9"
},
"state_topic": "homeassistant/sensor/test06/state"
}
The sensor is added to the entity register but the device isn’t added to the device register. What is wrong?