소스 검색

fix(royalclima_fresh_climate): separate statistics

Statistics contains a timestamp that is continually updating. This
spams the recorder database with climate state.
Separate it out into its own sensor, to reduce the size of spammed data,
and make it disabled by default, as likely it will not be interesting to
most users.

Issue #3642
Jason Rumney 8 달 전
부모
커밋
82469c3c1c
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      custom_components/tuya_local/devices/royalclima_fresh_climate.yaml

+ 6 - 1
custom_components/tuya_local/devices/royalclima_fresh_climate.yaml

@@ -114,9 +114,14 @@ entities:
       - id: 133
         type: string
         name: swing_action
+  - entity: sensor
+    name: Statistics
+    category: diagnostic
+    hidden: true
+    dps:
       - id: 134
         type: json
-        name: statistics
+        name: sensor
   - entity: select
     name: Ventilation
     dps: