I have a custom PCB with an WiFi device which is publishing stuff into MQTT.
Discovery is working, the device can be accessed through Home Assistant, and so far so good.
However, I decided to integrate my device with the integrations metadata stuff which seems very nice for organizing everything. However, this happens:
The payload for the configuration discovery is the following (formatted for readability):
# homeassistant/fan/fancontrol_headquarters/config
{
"~":"espthings/fancontrol_headquarters",
"name":"headquarters_fan",
"avty_t":"~/available",
"uniq_id":"espA020A607904E_fan",
"cmd_t":"~/fan/set",
"stat_t":"~/fan/state",
"spd_cmd_t":"~/fan/set_speed",
"spd_stat_t":"~/fan/state_speed",
"spds":["low","medium","high"],
"dev":{
"ids":"fancontrol_headquarters",
"mf":"BetaRho Technologies",
"mdl":"fancontrol",
"name":"Fan Control for Headquarters",
"sw":"0.9",
"cns":[{"type":"mac","identifier":"A0:20:A6:07:90:4E"}]
}
}
As seen in the picture, Home Assistant detects the "dev"
stuff, and puts it into the integrations configuration page. Also detects the component and I can use the fan
. But I expected for the component to be into the device and manage them from there (just like the ZigBee2MQTT devices, or other MQTT integrations). And I suppose I am formatting something wrong, but cannot see the problem