Преглед изворни кода

fix(tongou_sa1_wifi_energy_meter): do not force dp 6, and let it persist

Force is not needed for these types of dp, instead the "Live updates" button should
be used to trigger frequent updates.

The persist: false makes the sensors clear when not being received in full polls, but
for sensors there is no reason to do this, and the sensors will act better if they
retain the last received value.

Discussion #6022
Jason Rumney пре 6 дана
родитељ
комит
a2197c0e98
1 измењених фајлова са 0 додато и 6 уклоњено
  1. 0 6
      custom_components/tuya_local/devices/tongou_sa1_wifi_energy_meter.yaml

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

@@ -35,8 +35,6 @@ entities:
         name: sensor
         name: sensor
         optional: true
         optional: true
         class: measurement
         class: measurement
-        force: true
-        persist: false
         unit: V
         unit: V
         mask: "FFFF000000000000"
         mask: "FFFF000000000000"
         mapping:
         mapping:
@@ -50,8 +48,6 @@ entities:
         name: sensor
         name: sensor
         optional: true
         optional: true
         class: measurement
         class: measurement
-        force: true
-        persist: false
         unit: A
         unit: A
         mask: "0000FFFFFF000000"
         mask: "0000FFFFFF000000"
         mapping:
         mapping:
@@ -64,9 +60,7 @@ entities:
         type: base64
         type: base64
         name: sensor
         name: sensor
         optional: true
         optional: true
-        persist: false
         class: measurement
         class: measurement
-        force: true
         unit: kW
         unit: kW
         mask: "0000000000FFFFFF"
         mask: "0000000000FFFFFF"
         mapping:
         mapping: