Closed DaSchaef closed 5 months ago
Just for reference:
Nice to have: set the configuration_url
to the IP of the adapter to get a link to the adapter UI (see https://developers.home-assistant.io/blog/2021/10/26/config-entity/).
entity_category=config
: we can also create config entries.
entity_category=diagnostic
: we can show status infos
Maybe useful as inspiration: https://github.com/tbnobody/OpenDTU/blob/master/src/MqttHandleHass.cpp
{
"name": "Bus Data",
"force_update": True,
"icon": "mdi:door",
"state_topic": "gdoor/rx",
"command_topic": "gdoor/tx",
"json_attributes_topic": "gdoor/rx",
"value_template": "{{ value_json.action }}",
"uniq_id": "wfffedd_data",
"device": {
"sw_version": "3.0",
"name": "GDOOR Adapter",
"model": "ESP32 (de:ad:be:ef)",
"manufacturer": "GDOOR Project",
"configuration_url": "http://127.0.0.1",
"ids": "hdisep"
}
}
Closing with #18 Future work started in #25
I'm collecting infos about MQTT Discovery
topic: homeassistant/sensor/gdoor/data/config
retention flag needed