ソースを参照

smartplugv1: don't force updates of power/current/voltage

These older plugs do not use the standard dps of 18,19,20 for these, and
there don't seem to be any reports of them needing the workaround.

Localtuya seems to only enable updatedps by default for plugs using 18,19,20
as the dps ids for these, and running protocol v3.3 or 3.4.

updatedps seems to cause problems for Gosund EP2 plugs which use this dp
layout with protocol v3.3

Issue #477
Jason Rumney 3 年 前
コミット
f52ebe4d02
1 ファイル変更0 行追加3 行削除
  1. 0 3
      custom_components/tuya_local/devices/smartplugv1.yaml

+ 0 - 3
custom_components/tuya_local/devices/smartplugv1.yaml

@@ -18,7 +18,6 @@ secondary_entities:
         type: integer
         class: measurement
         unit: V
-        force: true
         mapping:
           - scale: 10
   - entity: sensor
@@ -31,7 +30,6 @@ secondary_entities:
         type: integer
         class: measurement
         unit: mA
-        force: true
   - entity: sensor
     category: diagnostic
     class: power
@@ -42,7 +40,6 @@ secondary_entities:
         type: integer
         class: measurement
         unit: W
-        force: true
         mapping:
           - scale: 10
   - entity: number