You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/bug.yml
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,12 @@ body:
6
6
- type: markdown
7
7
attributes:
8
8
value: Before you open a new issue, search through the existing issues to see if others have had the same problem.
9
-
- type: textarea
10
-
attributes:
11
-
label: "System Health details"
12
-
description: "Paste the data from the System Health card in Home Assistant (https://www.home-assistant.io/more-info/system-health)"
13
-
validations:
14
-
required: true
15
9
- type: checkboxes
16
10
attributes:
17
11
label: Checklist
18
12
options:
19
13
- label: I have added `battery_notes:` to my configuration.yaml and restarted.
20
14
required: true
21
-
- label: I am using the latest version of Battery Notes (if using the latest beta please mention this in the issue description).
22
-
required: true
23
15
- label: I have read the [FAQ's](https://andrew-codechimp.github.io/HA-Battery-Notes/faq).
24
16
required: true
25
17
- label: I have enabled debug logging for my installation.
@@ -30,6 +22,12 @@ body:
30
22
required: true
31
23
- label: This issue is not a duplicate issue of any [previous issues](https://github.com/andrew-codechimp/ha-battery-notes/issues?q=is%3Aissue+label%3A%22Bug%22+)..
32
24
required: true
25
+
- type: input
26
+
attributes:
27
+
label: "Battery Notes Version"
28
+
description: "Available from Settings/Devices & Services/Integrations/Battery Notes (you should be running the latest or pre-release)."
29
+
validations:
30
+
required: true
33
31
- type: textarea
34
32
attributes:
35
33
label: "Describe the issue"
@@ -47,14 +45,19 @@ body:
47
45
...
48
46
validations:
49
47
required: true
48
+
- type: textarea
49
+
attributes:
50
+
label: "System Health details"
51
+
description: "Paste the data from the System Health card in Home Assistant (https://www.home-assistant.io/more-info/system-health)"
52
+
validations:
53
+
required: true
50
54
- type: textarea
51
55
attributes:
52
56
label: "Debug logs"
53
57
description: "To enable debug logs check this https://www.home-assistant.io/integrations/logger/, this **needs** to include _everything_ from startup of Home Assistant to the point where you encounter the issue."
Copy file name to clipboardExpand all lines: custom_components/battery_notes/translations/nl.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -190,12 +190,12 @@
190
190
},
191
191
"issues": {
192
192
"missing_device": {
193
-
"title": "Orphaned Battery Note",
193
+
"title": "Verouderd Battery Note",
194
194
"fix_flow": {
195
195
"step": {
196
196
"confirm": {
197
-
"title": "Orphaned Battery Note",
198
-
"description": "The associated device or entity no longer exists for the Battery Note entry {name}, the Battery Note should be deleted.\nSelect **Submit** to delete this Battery Note."
197
+
"title": "Verouderd Battery Note",
198
+
"description": "Het bijbehorende apparaat of entiteit bestaat niet langer voor de Battery Note {name}, de Battery Note moet worden verwijderd.\nSelecteer **Verzenden** om deze Battery Note te verwijderen."
Copy file name to clipboardExpand all lines: docs/events.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ You can use this to send notifications in your preferred method. An example aut
19
19
|`source_entity_id`|`string`| The entity id of the sensor associated with the battery note. |
20
20
|`device_name`|`string`| The device name (or associated sensor name if no device). |
21
21
|`battery_low`|`bool`| Returns true if the battery has gone below the threshold, false when the battery has returned above the threshold. **Your automations will almost certainly want to examine this value and set/clear notifications or other indicators.**|
22
+
|`battery_low_threshold`|`string`| Battery low threshold (or global if 0). |
22
23
|`battery_type_and_quantity`|`string`| Battery type & quantity. |
23
24
|`battery_type`|`string`| Battery type. |
24
25
|`battery_quantity`|`int`| Battery quantity. |
@@ -94,6 +95,7 @@ An example automation below shows how to update the battery_replaced.
94
95
| `source_entity_id` | `string` | The entity id of the sensor associated with the battery note. |
95
96
| `device_name` | `string` | The device name (or associated sensor name if no device). |
96
97
| `battery_low` | `bool` | Returns true if the battery has gone below the threshold, false when the battery has returned above the threshold. |
98
+
| `battery_low_threshold` | `string` | Battery low threshold (or global if 0). |
97
99
| `battery_type_and_quantity` | `string` | Battery type & quantity. |
No, you can always add a device manually by going to Settings -> Integrations -> Battery Notes screen add a new device where you can enter the battery details manually.
5
6
6
-
## Why is my device not being discovered?
7
-
It could be missing from the [library](https://github.com/andrew-codechimp/HA-Battery-Notes/blob/main/library.md) or does not exactly match the name that your integration has. ZHA and Z2M for example have different manufacturers/models for the same device, you can still add it manually or contribute to the library.
7
+
## Why is my device not being discovered?
8
+
9
+
It could be missing from the [library](https://github.com/andrew-codechimp/HA-Battery-Notes/blob/main/library.md) or does not exactly match the name that your integration has. ZHA and Z2M for example have different manufacturers/models for the same device, you can still add it manually or contribute to the library.
10
+
11
+
## When is the library updated?
8
12
9
-
## When is the library updated?
10
13
It updates when Home Assistant is restarted and approximately every 24 hours after that.
11
14
It will pull the latest devices that have been merged into the main branch, if you have recently submitted a pull request for a new device it will not appear until it has been manually reviewed and merged.
12
15
13
-
## How do I remove a battery note on a device?
16
+
## How do I remove a battery note on a device?
17
+
14
18
Go into the Settings -> Integrations -> Battery Notes, use the menu on the right of a device and select Delete, this will only delete the battery note, not the whole device.
15
19
16
-
## Can I edit a battery note?
20
+
## Can I edit a battery note?
21
+
17
22
Go into Settings -> Integrations -> Battery Notes and click Configure on the device you want to edit.
18
23
19
-
## Why am I only able to see some of my devices when adding manually?
24
+
## Why am I only able to see some of my devices when adding manually?
25
+
20
26
By default Battery Notes filters the device list to only devices with a battery, if you want to add a battery note to a random device then you can disable this filtering by adding the following configuration to your `configuration.yaml` and restart Home Assistant to see all devices.
27
+
21
28
```
22
29
battery_notes:
23
30
show_all_devices: True
24
31
```
25
32
26
-
## I only want to add notes to a few devices, can I disable auto discovery?
33
+
## I only want to add notes to a few devices, can I disable auto discovery?
34
+
27
35
If you want to disable this functionality you can add the following to your `configuration.yaml`, after a restart of Home Assistant you will not see discovered battery notes.
36
+
28
37
```
29
38
battery_notes:
30
39
enable_autodiscovery: False
31
40
```
32
41
33
-
## I don't want to track battery replacement, can I disable this?
34
-
Yes, you can add the following to your `configuration.yaml`, after a restart of Home Assistant *new* devices added to battery notes will have the battery replaced sensor and button disabled. Any devices you have previously added to Battery Notes you will have to disable/enable these sensors manually, which also means you can just enable specific sensors of important ones you want to track.
42
+
## I don't want to track battery replacement, can I disable this?
43
+
44
+
Yes, you can add the following to your `configuration.yaml`, after a restart of Home Assistant _new_ devices added to battery notes will have the battery replaced sensor and button disabled. Any devices you have previously added to Battery Notes you will have to disable/enable these sensors manually, which also means you can just enable specific sensors of important ones you want to track.
45
+
35
46
```
36
47
battery_notes:
37
48
enable_replaced: False
38
49
```
39
50
40
-
## My device doesn't show a Battery+ sensor
51
+
## My device doesn't show a Battery+ sensor
52
+
41
53
This is usually because the device does not have a battery percentage, you can create one if your device has a voltage, low indicator or similar by following [these instructions](entities.md/#adding-a-battery-percentage)
42
54
55
+
## My device is not picking up the proper battery percentage for Battery+
56
+
57
+
If your device has a different percentage, perhaps a max charge indicator Battery Notes cannot identify the correct battery percentage to monitor. You can either hide the entity you want Battery+ to ignore or you can remove the Battery Notes device, then re-add as an Entity Association Type manually and choose the correct battery percentage to monitor.
58
+
59
+
## How do I create a battery low template
43
60
44
-
## How do I create a battery low template
45
61
The best way to do this is to test in the developer tools/template section for your sensor.
46
-
Be aware that Home Assistant shows friendly alternatives for some sensors, so when you are seeing Normal/Low this may really be a bool, testing in the template tool will allow you to determine the correct template to use. Start by adapting one of these.
62
+
Be aware that Home Assistant shows friendly alternatives for some sensors, so when you are seeing Normal/Low this may really be a bool, testing in the template tool will allow you to determine the correct template to use. Start by adapting one of these.
Once you have got your template correct you can copy/paste it into the battery notes configuration section for that device and it will use that for detecting the battery is low and raising the battery notes event.
53
71
54
72
## My Shelly device is not showing a Battery+
55
-
There seems to have been an issue with the Shelly integration at some point where the battery entity was not created properly and therefore Battery Notes cannot find it. To fix this do the following:
56
-
* Remove the battery note from the Shelly device
57
-
* Remove the Shelly device from the Shelly integration
58
-
* Re-Add the Shelly device
59
-
* Add the battery note to the device
60
73
74
+
There seems to have been an issue with the Shelly integration at some point where the battery entity was not created properly and therefore Battery Notes cannot find it. To fix this do the following:
75
+
76
+
- Remove the battery note from the Shelly device
77
+
- Remove the Shelly device from the Shelly integration
78
+
- Re-Add the Shelly device
79
+
- Add the battery note to the device
80
+
81
+
## How do I install pre-release versions via HACS
61
82
62
-
## How do I install pre-release versions via HACS
63
83
Within Home Assistant go to Settings -> Integrations -> HACS
64
84
Select Services
65
85
Select Battery Notes
@@ -69,7 +89,8 @@ Select the cog icon
69
89
Select Enable
70
90
Select Update and wait for the entity to be enabled
71
91
Turn on the Pre-release toggle
72
-
HACS will now show updates available for pre-releases if there are any
92
+
HACS will now show updates available for pre-releases if there are any
93
+
94
+
## How can I show my support?
73
95
74
-
## How can I show my support?
75
96
[](https://www.buymeacoffee.com/codechimp)
0 commit comments