소스 검색

Catit Fountain: add range back to filter and pump sensors.

Invert needs to know the range in order to know where to invert to.
Without that, the counters count up rather than down, which is less useful.

Discussion #501
Jason Rumney 3 년 전
부모
커밋
df699d5ed8
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

+ 6 - 0
custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

@@ -43,6 +43,9 @@ secondary_entities:
         type: integer
         name: sensor
         precision: 0
+        range:
+          min: 0
+          max: 43200
         mapping:
           - scale: 1440 # minutes => days
             invert: true
@@ -56,6 +59,9 @@ secondary_entities:
         type: integer
         name: sensor
         precision: 0
+        range:
+          min: 0
+          max: 86400
         mapping:
           - scale: 1440
             invert: true