소스 검색

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