Closed chemelli74 closed 3 days ago
source_entity_id is only used if you created an entity type battery note and should be set to the entity_id that battery notes is associated with. If your battery note is a more typical device type then setting the source_entity_id: "" should fix this.
service: battery_notes.set_battery_replaced
data:
source_entity_id: ""
datetime_replaced: "2024-06-28 12:27:00"
device_id: deef0ff3cb2886ea4b319d38fe6270c8
Confirmed to work fine with:
service: battery_notes.set_battery_replaced
data:
datetime_replaced: "2024-06-28 12:27:00"
device_id: deef0ff3cb2886ea4b319d38fe6270c8
Thank you !
I suggest you give a failure feedback to the UI when the settings are wrong. And improve the service description to help others.
System Health details
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4989 Installed Version | 1.34.0 Stage | running Available Repositories | 1390 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 | 19 giugno 2024 alle ore 19:53 -- | -- current_recorder_run | 28 giugno 2024 alle ore 19:17 estimated_db_size | 972.75 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
Cannot set the last replace data via service. Call details:
Device:
Reproduction steps
Debug logs
Diagnostics dump
No response