Closed chemelli74 closed 2 months ago
Hi, this depends on the device. Only devices with a battery percentage will be picked up and a Battery+ created. If your device has multiple entities that are batteries, like a voltage, low/normal or something else then try removing the device from battery notes and adding it back with the new Entity method, which will allow you to specify the battery entity directly, it can get confused with multiple battery entities.
Hi, doesn't looks like this is the case:
OK, the Shelly integration had an issue a long time ago where the battery wasn't added properly. Can you remove it from Battery Notes, remove it from the Shelly integration, then re add it.
See this issue for someone else with the same problem with a Shelly battery device. https://github.com/andrew-codechimp/HA-Battery-Notes/issues/1622
Interesting, I run jq -e ".data.entities[]| select(.entity_id==\"sensor.sensore_acqua_battery\")" core.entity_registry
and found the issue:
{
"aliases": [],
"area_id": null,
"categories": {},
"capabilities": {
"state_class": "measurement"
},
"config_entry_id": "070664e60231bf2de016840aa386d429",
"device_class": null,
"device_id": "bb9132f258b97b7ddbbe63c8cea0c347",
"disabled_by": null,
"entity_category": "diagnostic",
"entity_id": "sensor.sensore_acqua_battery",
"hidden_by": null,
"icon": null,
"id": "3cd48ac6b624a061669b7e845f36fc5e",
"has_entity_name": false,
"labels": [],
"name": null,
"options": {
"conversation": {
"should_expose": false
}
},
"original_device_class": "battery",
"original_icon": null,
"original_name": "Sensore Acqua battery",
"platform": "shelly",
"supported_features": 0,
"translation_key": null,
"unique_id": "xxxxxx-device-battery",
"previous_unique_id": null,
"unit_of_measurement": null
}
Yes, seems to be an issue with the early Shelly integration that didn't set the "unit_of_measurement": "%" correctly. It's safe to modify entity_registry value and do a HA restart to get that properly recorded if you don't want the pain of re-pairing, I just don't like to suggest that for people unfamiliar with JSON, but by your use of jq there I'm guessing you're a hard core HA user!
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4996 Installed Version | 1.34.0 Stage | running Available Repositories | 1395 Downloaded Repositories | 22Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okDashboards
dashboards | 2 -- | -- resources | 12 views | 14 mode | storageRecorder
oldest_recorder_run | 11 maggio 2024 alle ore 18:43 -- | -- current_recorder_run | 19 maggio 2024 alle ore 16:55 estimated_db_size | 988.02 MiB database_engine | sqlite database_version | 3.44.2Spotify
api_endpoint_reachable | ok -- | --Checklist
battery_notes:
to my configuration.yaml and restarted.Describe the issue
I noticed that some devices have the battery+ sensor, some others not.
Reproduction steps
Debug logs
No response
Diagnostics dump
No response