瀏覽代碼

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