Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Discovery #17

Closed
DaSchaef opened this issue May 8, 2024 · 5 comments
Closed

MQTT Discovery #17

DaSchaef opened this issue May 8, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@DaSchaef
Copy link
Contributor

DaSchaef commented May 8, 2024

I'm collecting infos about MQTT Discovery

{
    "sw_version": "3.0",
    "name": "GDOOR Gira Bus Adapter",
    "force_update": true,
    "icon": "mdi:door",
    "state_topic": "gdoor/rx",
    "command_topic": "gdoor/tx"
}

topic: homeassistant/sensor/gdoor/data/config

retention flag needed

@DaSchaef DaSchaef added the enhancement New feature or request label May 8, 2024
@jschroeter
Copy link
Collaborator

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/).

@DaSchaef
Copy link
Contributor Author

DaSchaef commented May 9, 2024

entity_category=config: we can also create config entries.
entity_category=diagnostic: we can show status infos

@jschroeter
Copy link
Collaborator

jschroeter commented May 9, 2024

@DaSchaef
Copy link
Contributor Author

{
    "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"
    }
}

@DaSchaef
Copy link
Contributor Author

Closing with #18
Future work started in #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants