From bb4e8633bf7dcdb4de4a88b997b09ebcb17df55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9A=D0=B0=D1=80?= =?UTF-8?q?=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 10 Dec 2023 18:57:19 +0400 Subject: [PATCH 1/5] new sensors --- .../battery_notes/data/library.json | 67 ++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/custom_components/battery_notes/data/library.json b/custom_components/battery_notes/data/library.json index ab48e06d3..4210bda28 100644 --- a/custom_components/battery_notes/data/library.json +++ b/custom_components/battery_notes/data/library.json @@ -78,6 +78,71 @@ "manufacturer": "Xiaomi", "model": "Aqara vibration sensor (DJT11LM)", "battery_type": "CR2032" + }, + { + "manufacturer": "W340001X", + "model": "SwitchBot", + "battery_type": "AAA", + "battery_quantity": 2 + }, + { + "manufacturer": "Soil sensor (TS0601_soil)", + "model": "TuYa", + "battery_type": "AA", + "battery_quantity": 2 + }, + { + "manufacturer": "Aqara water leak sensor (SJCGQ11LM)", + "model": "Xiaomi", + "battery_type": "CR2032" + }, + { + "manufacturer": "MiJia wireless switch (WXKG01LM)", + "model": "Xiaomi", + "battery_type": "CR2032" + }, + { + "manufacturer": "Aqara wireless switch (WXKG11LM)", + "model": "Xiaomi", + "battery_type": "CR2032" + }, + { + "manufacturer": "4 in 1 multi sensor (ZB003-X)", + "model": "Fantem", + "battery_type": "CR123A", + "battery_quantity": 2 + }, + { + "manufacturer": "[Flower sensor](http://modkam.ru/?p=1700) (DIYRuZ_Flower)", + "model": "DIYRuZ", + "battery_type": "AAA", + "battery_quantity": 2 + }, + { + "manufacturer": "Motion sensor (SNZB-03)", + "model": "SONOFF", + "battery_type": "CR2450" + }, + { + "manufacturer": "Aqara TVOC air quality monitor (VOCKQJK11LM)", + "model": "Xiaomi", + "battery_type": "CR2450", + "battery_quantity": 2 + }, + { + "manufacturer": "Smart carbon monoxide sensor (HS1CA-E)", + "model": "HEIMAN", + "battery_type": "CR123A" + }, + { + "manufacturer": "Aqara D1 single key wireless wall switch (WXKG06LM)", + "model": "Xiaomi", + "battery_type": "CR2032 " + }, + { + "manufacturer": "Aqara D1 double key wireless wall switch (WXKG07LM)", + "model": "Xiaomi", + "battery_type": "CR2032 " } ] -} +} \ No newline at end of file From a4cf20751102dca71b142af7644c1df63ac94dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9A=D0=B0=D1=80?= =?UTF-8?q?=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 10 Dec 2023 19:01:01 +0400 Subject: [PATCH 2/5] ble sensors --- custom_components/battery_notes/data/library.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_components/battery_notes/data/library.json b/custom_components/battery_notes/data/library.json index 4210bda28..052bf7957 100644 --- a/custom_components/battery_notes/data/library.json +++ b/custom_components/battery_notes/data/library.json @@ -143,6 +143,16 @@ "manufacturer": "Aqara D1 double key wireless wall switch (WXKG07LM)", "model": "Xiaomi", "battery_type": "CR2032 " + }, + { + "manufacturer": "HHCCJCY01", + "model": "Xiaomi", + "battery_type": "CR2032 " + }, + { + "manufacturer": "LYWSD03MMC", + "model": "Xiaomi", + "battery_type": "CR2032 " } ] } \ No newline at end of file From 2d0079b98e38de0fe9bf120f45444df46ff2e5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9A=D0=B0=D1=80?= =?UTF-8?q?=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 10 Dec 2023 19:04:51 +0400 Subject: [PATCH 3/5] fix --- .../battery_notes/data/library.json | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/custom_components/battery_notes/data/library.json b/custom_components/battery_notes/data/library.json index 052bf7957..6fb0d3885 100644 --- a/custom_components/battery_notes/data/library.json +++ b/custom_components/battery_notes/data/library.json @@ -80,78 +80,78 @@ "battery_type": "CR2032" }, { - "manufacturer": "W340001X", - "model": "SwitchBot", + "manufacturer": "SwitchBot", + "model": "W340001X", "battery_type": "AAA", "battery_quantity": 2 }, { - "manufacturer": "Soil sensor (TS0601_soil)", - "model": "TuYa", + "model": "Soil sensor (TS0601_soil)", + "manufacturer": "TuYa", "battery_type": "AA", "battery_quantity": 2 }, { - "manufacturer": "Aqara water leak sensor (SJCGQ11LM)", - "model": "Xiaomi", + "model": "Aqara water leak sensor (SJCGQ11LM)", + "manufacturer": "Xiaomi", "battery_type": "CR2032" }, { - "manufacturer": "MiJia wireless switch (WXKG01LM)", - "model": "Xiaomi", + "model": "MiJia wireless switch (WXKG01LM)", + "manufacturer": "Xiaomi", "battery_type": "CR2032" }, { - "manufacturer": "Aqara wireless switch (WXKG11LM)", - "model": "Xiaomi", + "model": "Aqara wireless switch (WXKG11LM)", + "manufacturer": "Xiaomi", "battery_type": "CR2032" }, { - "manufacturer": "4 in 1 multi sensor (ZB003-X)", - "model": "Fantem", + "model": "4 in 1 multi sensor (ZB003-X)", + "manufacturer": "Fantem", "battery_type": "CR123A", "battery_quantity": 2 }, { - "manufacturer": "[Flower sensor](http://modkam.ru/?p=1700) (DIYRuZ_Flower)", - "model": "DIYRuZ", + "model": "[Flower sensor](http://modkam.ru/?p=1700) (DIYRuZ_Flower)", + "manufacturer": "DIYRuZ", "battery_type": "AAA", "battery_quantity": 2 }, { - "manufacturer": "Motion sensor (SNZB-03)", - "model": "SONOFF", + "model": "Motion sensor (SNZB-03)", + "manufacturer": "SONOFF", "battery_type": "CR2450" }, { - "manufacturer": "Aqara TVOC air quality monitor (VOCKQJK11LM)", - "model": "Xiaomi", + "model": "Aqara TVOC air quality monitor (VOCKQJK11LM)", + "manufacturer": "Xiaomi", "battery_type": "CR2450", "battery_quantity": 2 }, { - "manufacturer": "Smart carbon monoxide sensor (HS1CA-E)", - "model": "HEIMAN", + "model": "Smart carbon monoxide sensor (HS1CA-E)", + "manufacturer": "HEIMAN", "battery_type": "CR123A" }, { - "manufacturer": "Aqara D1 single key wireless wall switch (WXKG06LM)", - "model": "Xiaomi", + "model": "Aqara D1 single key wireless wall switch (WXKG06LM)", + "manufacturer": "Xiaomi", "battery_type": "CR2032 " }, { - "manufacturer": "Aqara D1 double key wireless wall switch (WXKG07LM)", - "model": "Xiaomi", + "model": "Aqara D1 double key wireless wall switch (WXKG07LM)", + "manufacturer": "Xiaomi", "battery_type": "CR2032 " }, { - "manufacturer": "HHCCJCY01", - "model": "Xiaomi", + "model": "HHCCJCY01", + "manufacturer": "Xiaomi", "battery_type": "CR2032 " }, { - "manufacturer": "LYWSD03MMC", - "model": "Xiaomi", + "model": "LYWSD03MMC", + "manufacturer": "Xiaomi", "battery_type": "CR2032 " } ] From 35cba40d991498b64e55ad297f57b3f0cfb19290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9A=D0=B0=D1=80?= =?UTF-8?q?=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 10 Dec 2023 19:09:22 +0400 Subject: [PATCH 4/5] 2 more --- custom_components/battery_notes/data/library.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/custom_components/battery_notes/data/library.json b/custom_components/battery_notes/data/library.json index 6fb0d3885..034b7fc65 100644 --- a/custom_components/battery_notes/data/library.json +++ b/custom_components/battery_notes/data/library.json @@ -153,6 +153,17 @@ "model": "LYWSD03MMC", "manufacturer": "Xiaomi", "battery_type": "CR2032 " + }, + { + "model": "SN511-180MS_PV53", + "manufacturer": "TT Lock", + "battery_type": "AA", + "battery_quantity": 4 + },{ + "model": "Temperature & humidity sensor (WSD500A)", + "manufacturer": "TuYa", + "battery_type": "AAA", + "battery_quantity": 2 } ] } \ No newline at end of file From d062c21c1ac70e2cf16cae778bfb21bf978349d1 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Sun, 10 Dec 2023 17:33:35 +0000 Subject: [PATCH 5/5] Update library.json Re-ordered devices alphabetically --- .../battery_notes/data/library.json | 103 +++++++++--------- 1 file changed, 52 insertions(+), 51 deletions(-) diff --git a/custom_components/battery_notes/data/library.json b/custom_components/battery_notes/data/library.json index 034b7fc65..efa71a0c2 100644 --- a/custom_components/battery_notes/data/library.json +++ b/custom_components/battery_notes/data/library.json @@ -6,6 +6,23 @@ "model": "Smoke detector with siren (SMSZB-120)", "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": "HEIMAN", + "model": "Smart carbon monoxide sensor (HS1CA-E)", + "battery_type": "CR123A" + }, { "manufacturer": "OSRAM", "model": "Smart+ switch mini (AC0251100NJ/AC0251600NJ/AC0251700NJ)", @@ -43,13 +60,30 @@ "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": "TT Lock", + "model": "SN511-180MS_PV53", + "battery_type": "AA", + "battery_quantity": 4 + }, + { + "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" }, @@ -92,78 +126,45 @@ "battery_quantity": 2 }, { - "model": "Aqara water leak sensor (SJCGQ11LM)", "manufacturer": "Xiaomi", + "model": "Aqara D1 double key wireless wall switch (WXKG07LM)", "battery_type": "CR2032" - }, + }, { - "model": "MiJia wireless switch (WXKG01LM)", "manufacturer": "Xiaomi", + "model": "Aqara D1 single key wireless wall switch (WXKG06LM)", "battery_type": "CR2032" - }, + }, { - "model": "Aqara wireless switch (WXKG11LM)", "manufacturer": "Xiaomi", + "model": "Aqara wireless switch (WXKG11LM)", "battery_type": "CR2032" }, { - "model": "4 in 1 multi sensor (ZB003-X)", - "manufacturer": "Fantem", - "battery_type": "CR123A", - "battery_quantity": 2 - }, - { - "model": "[Flower sensor](http://modkam.ru/?p=1700) (DIYRuZ_Flower)", - "manufacturer": "DIYRuZ", - "battery_type": "AAA", - "battery_quantity": 2 - }, - { - "model": "Motion sensor (SNZB-03)", - "manufacturer": "SONOFF", - "battery_type": "CR2450" - }, - { - "model": "Aqara TVOC air quality monitor (VOCKQJK11LM)", "manufacturer": "Xiaomi", + "model": "Aqara TVOC air quality monitor (VOCKQJK11LM)", "battery_type": "CR2450", "battery_quantity": 2 - }, - { - "model": "Smart carbon monoxide sensor (HS1CA-E)", - "manufacturer": "HEIMAN", - "battery_type": "CR123A" - }, + }, { - "model": "Aqara D1 single key wireless wall switch (WXKG06LM)", "manufacturer": "Xiaomi", - "battery_type": "CR2032 " + "model": "Aqara water leak sensor (SJCGQ11LM)", + "battery_type": "CR2032" }, { - "model": "Aqara D1 double key wireless wall switch (WXKG07LM)", "manufacturer": "Xiaomi", - "battery_type": "CR2032 " - }, - { "model": "HHCCJCY01", - "manufacturer": "Xiaomi", - "battery_type": "CR2032 " + "battery_type": "CR2032" }, { - "model": "LYWSD03MMC", "manufacturer": "Xiaomi", - "battery_type": "CR2032 " - }, + "model": "LYWSD03MMC", + "battery_type": "CR2032" + }, { - "model": "SN511-180MS_PV53", - "manufacturer": "TT Lock", - "battery_type": "AA", - "battery_quantity": 4 - },{ - "model": "Temperature & humidity sensor (WSD500A)", - "manufacturer": "TuYa", - "battery_type": "AAA", - "battery_quantity": 2 + "manufacturer": "Xiaomi", + "model": "MiJia wireless switch (WXKG01LM)", + "battery_type": "CR2032" } ] -} \ No newline at end of file +}