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

[Feature request] Add configuration_url to homeassistant autodiscovery #277

Closed
mallorca2288 opened this issue Jan 27, 2024 · 1 comment · Fixed by #288
Closed

[Feature request] Add configuration_url to homeassistant autodiscovery #277

mallorca2288 opened this issue Jan 27, 2024 · 1 comment · Fixed by #288

Comments

@mallorca2288
Copy link

Hello, first of all thank you for this great piece of software.

I was wondering if it would be possible to add the "configuration_url" key to the mqtt autodiscovery for homeassistant. This is a very small improvement but very convenient to have.

Maybe you could also consider adding the "sw_version" key even though we can already see this parameter with the Nuki Hub version sensor created in diagnostics.

For example:

{
  "dev": {
    "ids": [
      "nuki_3a7d95ec"
    ],
    "mf": "Nuki",
    "mdl": "SmartLock",
    "name": "Puerta casa",
    "configuration_url": "http://192.168.8.56",
    "sw_version": "Nuki HUB 8.30"
  },
  "~": "nuki",
  "name": null,
  "unique_id": "3a7d95ec_lock",
  "cmd_t": "~/lock/action",
  "avty": {
    "t": "~/maintenance/mqttConnectionState"
  },
  "pl_lock": "lock",
  "pl_unlk": "unlock",
  "pl_open": "unlatch",
  "stat_t": "~/lock/binaryState",
  "stat_locked": "locked",
  "stat_unlocked": "unlocked",
  "opt": "false"
}

This will create a link in the device page of homeassistant to open the configuration.

imagen

Thanks in advance!

@technyon
Copy link
Owner

I think that should be possible

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

Successfully merging a pull request may close this issue.

2 participants