Просмотр исходного кода

Add energy_storage class to prepay meter Balance and Charge entities.

- add docs for PR #829 Tontine blanket
Jason Rumney 2 лет назад
Родитель
Сommit
88076fabfb

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -306,3 +306,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [jorgejavier2321](https://github.com/jorgejavier2321) for assisting with support for Mantra ceiling fans.
 - [diystu](https://github.com/diystu) for assisting with support for Aulifants SMES200 breaker switch.
 - [mariustt](https://github.com/mariustt) for assisting with support for Tampa LED lighting system.
+- [prunes-git](https://github.com/prunes-git) for contributing support for Tontine electric blankets.

+ 1 - 0
DEVICES.md

@@ -417,6 +417,7 @@ of device.
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - SH07-8 smart sprinkler controller
+- Tontine electric blanket
 - Universal remote control (supports sensors only)
 - Yieryi water quality monitor (also matches unbranded PH-W3988 device)
 - ZN-2C09 9-in-1 air quality monitor

+ 2 - 0
custom_components/tuya_local/devices/dts238_7_energy_meter.yaml

@@ -75,6 +75,7 @@ secondary_entities:
         name: switch
   - entity: sensor
     name: Energy balance
+    class: energy_storage
     category: diagnostic
     dps:
       - id: 13
@@ -96,6 +97,7 @@ secondary_entities:
   - entity: number
     name: Charge energy
     category: config
+    class: energy_storage
     icon: "mdi:cash"
     dps:
       - id: 15

+ 1 - 0
custom_components/tuya_local/devices/smartmcb_smt006_energymeter.yaml

@@ -251,6 +251,7 @@ secondary_entities:
   - entity: sensor
     name: Balance energy
     category: diagnostic
+    class: energy_storage
     icon: "mdi:home-lightning-bolt"
     dps:
       - id: 13

+ 1 - 0
custom_components/tuya_local/devices/smartmcb_smt006_energymeterv2.yaml

@@ -252,6 +252,7 @@ secondary_entities:
   - entity: sensor
     name: Balance energy
     category: diagnostic
+    class: energy_storage
     icon: "mdi:home-lightning-bolt"
     dps:
       - id: 13

+ 2 - 0
custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

@@ -54,6 +54,7 @@ secondary_entities:
   - entity: sensor
     name: Balance energy
     category: diagnostic
+    class: energy_storage
     dps:
       - id: 13
         type: integer
@@ -64,6 +65,7 @@ secondary_entities:
   - entity: number
     name: Charge energy
     category: config
+    class: energy_storage
     icon: "mdi:cash"
     dps:
       - id: 14