Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp authored Dec 10, 2023
2 parents 9e97109 + 90506b7 commit 936c575
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "B
## Configuration is done in the UI

On the "Configuration" -> "Integrations" -> "Battery Notes" screen add a new device, pick your device with a battery and add the battery type.
The battery type will then be displayed as a diagnotic sensor on the device.
The battery type will then be displayed as a diagnostic sensor on the device.

## Contributing to the Battery Library (COMING SOON!)

Expand All @@ -66,6 +66,7 @@ For the example image below your JSON entry will look like this
```

Note that the ```battery_quantity``` is numeric (no quotes) and optional, if a device only has one battery it should be omitted.
When specifying battery types please use the Most Common naming for general batteries and the IEC naming for battery cells according to [Wikipedia](https://en.wikipedia.org/wiki/List_of_battery_sizes)

![Device Details](https://github.com/andrew-codechimp/HA-Battery-Notes/blob/main/images/screenshot-device-info.png "Device Details")
<!---->
Expand Down
89 changes: 86 additions & 3 deletions custom_components/battery_notes/data/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,28 @@
"battery_type": "CR123"
},
{
"manufacturer": "DIYRuZ",
"model": "[Flower sensor](http://modkam.ru/?p=1700) (DIYRuZ_Flower)",
"battery_type": "AAA",
"battery_quantity": 2
},
{
"manufacturer": "Fantem",
"model": "4 in 1 multi sensor (ZB003-X)",
"battery_type": "CR123A",
"battery_quantity": 2
},
{

"manufacturer": "GiEX",
"model": "Water irrigation valve (QT06_2)",
"battery_type": "AA",
"battery_quantity": 4
},
{
"manufacturer": "HEIMAN",
"model": "Smart carbon monoxide sensor (HS1CA-E)",
"battery_type": "CR123A"
},
{
"manufacturer": "OSRAM",
Expand Down Expand Up @@ -49,17 +67,28 @@
"model": "Hue wall switch module (929003017102)",
"battery_type": "CR2450"
},
{
"manufacturer": "SONOFF",
"model": "Motion sensor (SNZB-03)",
"battery_type": "CR2450"
},
{
"manufacturer": "Sonoff",
"model": "Temperature and humidity sensor (SNZB-02)",
"battery_type": "CR2430"
},
},
{
"manufacturer": "Sure Petcare",
"model": "Pet flap",
"battery_type": "C",
"battery_quantity": 4
},
},
{
"manufacturer": "SwitchBot",
"model": "W340001X",
"battery_type": "AAA",
"battery_quantity": 2
},
{
"manufacturer": "Tado",
"model": "RU01",
Expand All @@ -71,9 +100,27 @@
"model": "VA02",
"battery_type": "AA",
"battery_quantity": 2
},
{
"manufacturer": "TT Lock",
"model": "SN511-180MS_PV53",
"battery_type": "AA",
"battery_quantity": 4
},
{
"manufacturer": "TuYa",
"model": "Soil sensor (TS0601_soil)",
"battery_type": "AA",
"battery_quantity": 2
},
{
"manufacturer": "TuYa",
"model": "Temperature & humidity sensor (WSD500A)",
"battery_type": "AAA",
"battery_quantity": 2
},
{
"manufacturer": "Tuya",
"manufacturer": "TuYa",
"model": "Wireless switch with 4 buttons (TS0044)",
"battery_type": "CR2430"
},
Expand Down Expand Up @@ -103,6 +150,27 @@
"model": "Aqara vibration sensor (DJT11LM)",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "Aqara D1 double key wireless wall switch (WXKG07LM)",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "Aqara D1 single key wireless wall switch (WXKG06LM)",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "Aqara wireless switch (WXKG11LM)",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "Aqara TVOC air quality monitor (VOCKQJK11LM)",
"battery_type": "CR2450",
"battery_quantity": 2
},
{
"manufacturer": "Xiaomi",
"model": "Aqara water leak sensor (SJCGQ11LM)",
Expand All @@ -112,6 +180,21 @@
"manufacturer": "Xiaomi",
"model": "Aqara wireless switch (with gyroscope) (WXKG12LM)",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "HHCCJCY01",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "LYWSD03MMC",
"battery_type": "CR2032"
},
{
"manufacturer": "Xiaomi",
"model": "MiJia wireless switch (WXKG01LM)",
"battery_type": "CR2032"
}
]
}

0 comments on commit 936c575

Please sign in to comment.