Skip to content

Commit

Permalink
Merge branch 'main' into lastchanged
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
andrew-codechimp committed Dec 23, 2023
2 parents 31f3487 + 7e0f406 commit c933ebe
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 15 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Integration to add battery notes to a device, with automatic discovery via a gro

![Battery Notes](https://github.com/andrew-codechimp/HA-Battery-Notes/blob/main/images/screenshot-device.png "Battery Notes")

![Discovery](https://github.com/andrew-codechimp/HA-Battery-Notes/blob/main/images/screenshot-discovery.png "Device Discovery")

**This integration will set up the following platforms.**

Platform | Description
Expand Down Expand Up @@ -85,21 +87,17 @@ Unfortunately where there are multiple integrations associated with a device Hom
* Can I edit a battery note?
Go into Settings -> Integrations -> Battery Notes and click Configure on the device you want to edit.

* How can I show my support?
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/codechimp)


## Automatic discovery

Battery Notes will automatically discover devices (as long as you have followed the installation instructions above) that it has in its library and create a notification to add a battery note.
![Discovery](https://github.com/andrew-codechimp/HA-Battery-Notes/blob/main/images/screenshot-discovery.png "Device Discovery")

If you wish to disable this functionality then change your `configuration.yaml` to set enable_autodiscovery to false
* I only want to add notes to a few devices, can I disable auto discovery?
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.
```
battery_notes:
enable_autodiscovery: false
```

* How can I show my support?
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png)](https://www.buymeacoffee.com/codechimp)


## Contributing to the Battery Library

<!-- To add a device definition to the battery library so that it will be automatically configured there are two options:
Expand Down
46 changes: 41 additions & 5 deletions custom_components/battery_notes/data/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
"model": "ZWA003",
"battery_type": "LIR2450"
},
{
"manufacturer": "Aeotec Ltd.",
"model": "ZWA005",
"battery_type": "CR123A"
},
{
"manufacturer": "Aeotec Ltd.",
"model": "ZWA039",
"battery_type": "CR2477"
},
{
"manufacturer": "Airthings AS",
"model": "Wave Plus",
Expand Down Expand Up @@ -236,6 +246,11 @@
"battery_type": "AA",
"battery_quantity": 3
},
{
"manufacturer": "Govee",
"model": "H5101/H5102/H5177",
"battery_type": "AAA"
},
{
"manufacturer": "HEIMAN",
"model": "Smart carbon monoxide sensor (HS1CA-E)",
Expand Down Expand Up @@ -365,11 +380,6 @@
"battery_type": "AA",
"battery_quantity": 4
},
{
"manufacturer": "Lidl",
"model": "HG06335/HG07310",
"battery_type": "CR123A"
},
{
"manufacturer": "Lidl",
"model": "HG06336",
Expand Down Expand Up @@ -475,6 +485,11 @@
"battery_type": "AA",
"battery_quantity": 2
},
{
"manufacturer": "Mopeka IOT",
"model": "M1017",
"battery_type": "AAA-Lithium"
},
{
"manufacturer": "Neo",
"model": "Temperature & humidity sensor and alarm (NAS-AB02B0)",
Expand Down Expand Up @@ -667,6 +682,16 @@
"model": "Hue dimmer switch (RWL020)",
"battery_type": "CR2450"
},
{
"manufacturer": "Signify Netherlands B.V.",
"model": "Hue dimmer switch (RWL022)",
"battery_type": "CR2032"
},
{
"manufacturer": "Signify Netherlands B.V.",
"model": "Hue tap dial switch (RDM002)",
"battery_type": "CR2032"
},
{
"manufacturer": "Signify Netherlands B.V.",
"model": "Hue wall switch module (RDM001)",
Expand Down Expand Up @@ -846,6 +871,11 @@
"battery_type": "AA",
"battery_quantity": 4
},
{
"manufacturer": "TUO Accessories LLC",
"model": "TUO Smart Button",
"battery_type": "CR2032"
},
{
"manufacturer": "TuYa",
"model": "Button scene switch (SH-SC07)",
Expand Down Expand Up @@ -1151,6 +1181,12 @@
"battery_type": "AAA",
"battery_quantity": 2
},
{
"manufacturer": "Zooz",
"model": "ZEN34",
"battery_type": "AAA",
"battery_quantity": 2
},
{
"manufacturer": "Zooz",
"model": "ZSE40 700",
Expand Down
54 changes: 54 additions & 0 deletions custom_components/battery_notes/translations/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"config": {
"step": {
"user": {
"description": "Hilfe zur Konfiguration finden Sie unter: https://github.com/andrew-codechimp/ha-battery-notes",
"data": {
"device_id": "Gerät",
"name": "Name"
},
"data_description": {
"name": "Wenn Sie nichts eingeben wird der Name vom Quellgerät übernommen"
}
},
"battery": {
"data": {
"battery_type": "Batterieart"
},
"data_description": {
"battery_type": "Geben Sie optional die Anzahl der Batterien an wenn es mehr als eine Batterie ist, z. B. 2x AAA"
}
}
},
"abort": {
"already_configured": "Das Gerät ist bereits konfiguriert."
},
"error": {
"unknown": "Ein unbekannter Fehler ist aufgetreten."
}
},
"options": {
"step": {
"init": {
"description": "Hilfe zur Konfiguration finden Sie unter: https://github.com/andrew-codechimp/ha-battery-notes",
"data": {
"name": "Name",
"battery_type": "Batterieart"
},
"data_description": {
"name": "Wenn Sie nichts eingeben wird der Name vom Quellgerät übernommen"
}
}
},
"error": {
"unknown": "Ein unbekannter Fehler ist aufgetreten."
}
},
"entity": {
"sensor": {
"battery_type": {
"name": "Batterieart"
}
}
}
}

0 comments on commit c933ebe

Please sign in to comment.