question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `unique_id` property to entities

See original GitHub issue

First of all, thanks for putting together this great integration!

I was trying to assign the thermostat control in the home-assistant UI to an area (the room), so that it’s grouped with any other devices in the same room. However, I get the following message when attempting to do so (by going to Configuration->Entities, and clicking Wiser <room name>, the room stat):

This entity does not have a unique ID, therefore its settings cannot be managed from the UI.

Feature request: I think if e.g. the WiserRoom ClimateDevice exposed a unique_id property, then this should be possible. It’s also a recommended best practice where possible. Here are some examples from other integrations:

I suspect it’d be a good idea to expose the unique_id property for all of the entities where it’s possible, but I’m not 100% sure.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
msp1974commented, Mar 30, 2020

How strange. I get this for all the Wiser entities.

Home assistant wiser missing entity id

I dont want to implement uniqueids unless I can test it actually fixes the issue

Of course!

I used the master branch (1.9) and I didn’t use the config flow, I configured it using the configuration.yaml file. Most home-assistant components’ config flow uses auto-discovery, which doesn’t generally work with my network setup, but I see yours appears to take a host/ip and secret, so it’s probably OK. In any case, I’ll give the dev branch a go and will report back.

@m01 the config flow in v2.0 will do one of 3 things.

  1. If you have an entry in config.yaml, it will import this into a config flow config. This is to support all those using prior to v2.0 (like most of us here!). Once it has done so, entry in config.yaml can be removed (of left alone if you want but it won’t use it anymore)/
  2. You can manually add by adding through the integration page. In which case it will ask for ip and secret key and create a config from it. It has to be able to connect to the hub when creating this way to get the other devices to be created.
  3. When this is integrated into the main HA repo, it will support discovery of the hub and just ask for the key. Zeroconf discovery is only supported for core components.

Hope this helps. Mark

1reaction
msp1974commented, Mar 29, 2020

The dev version implements unique ids as part of config flow change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When and how to assign unique id to an entity in DDD?
Assign keys provided by back-end (NDB, MySQL etc.). Hand crafting unique identifier through some service (like system clock). Properties like ...
Read more >
Maintaining unique id for a number of entities
So, basically I am struggling to define unique ID for each resource in my system which could be linked with entities in external...
Read more >
Unique Entity Identifier Update
The New Unique Entity Identifier is Here. On April 4, 2022, the federal government stopped using the DUNS Number to uniquely identify entities....
Read more >
How to programmatically assign a unique ID? - Configuration
I am programmatically creating entity entries (via pyscript's set.state() - it works) but they do not have a unique_id .
Read more >
Generating Unique Ids - Beginners Guide to TypeScript
To make Expense objects uniquely identifiable, we need to create a unique ID for each object and expose the ID through a getId()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found