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.

Sensors entity_id's are localised

See original GitHub issue

Home Assistant Android version: 2021.2.2-full

Android version: 10

Phone model: OnePlus 7 Pro

Home Assistant version: 2021.2.3

Last working Home Assistant release (if known): n/a

Description of problem:

The generated entity_id’s for the sensors are suddenly localized. This happened to me when I re-installed the app today. Since the sensor information screen within the app contain the unique id property, I think this is a bug. On another phone where I didn’t reinstall, this behavior did not show itself. See below.

Screenshot of problem:

Re-installed phone: image

Old phone: image

Additional information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
dshokouhicommented, Feb 23, 2021

You need to change the language on the device before adding new sensors, this is as designed. If you reinstall you need to make sure to change the language to what you expected. Your best bet is to remove integration, clear data in the app, log back in, change language. The battery sensors are the only one that default to your system language and need to be changed manually.

2reactions
skynetuacommented, Mar 9, 2021

@dshokouhi I believe we can fix this by adding code to apply locale to application class on starting as well as we do it for activities in baseActivity class. Unfortunately I don’t have configured environment to check and fix it right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binary sensor problem: Entity id already exists: binary_sensor ...
I've added a second movement binary sensor to my binary_sensors.yaml include and I'm getting the following error: 2018-12-09 00:36:36 ERROR ...
Read more >
[homeassistant.helpers.entity_component] Forced update ...
The problem as per request in #70187 (comment) and #68661 (comment) a re-raised issue on the integration happening on each automated trigger ...
Read more >
Configuring devices on the network with ease, and entity ...
Any configuration or diagnostic entities are not exposed, and if you have them in a group, service calls won't touch them unless you...
Read more >
Entity Sensor | Plethora
The entity sensor provides a way to query information about surrounding entities. There are so many ways this could go wrong… Module: plethora:sensor...
Read more >
This entity does not have a unique ID, therefore its settings ...
By the looks of it, you are sending multiple V_Types (V_STATUS, V_VAR1, V_VAR2) to a single child sensor ID (2). I guess this...
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