소스 검색

Tera W01 EV charger: make some dps optional

Issue #2236
Jason Rumney 1 년 전
부모
커밋
b005109356
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      custom_components/tuya_local/devices/tera_w01_evcharger.yaml

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

@@ -37,6 +37,7 @@ secondary_entities:
     dps:
       - id: 1  # forward_energy_total
         type: integer
+        optional: true
         name: sensor
         class: total_increasing
         unit: kWh
@@ -226,6 +227,7 @@ secondary_entities:
     dps:
       - id: 14  # work_mode
         type: string
+        optional: true
         name: option
         mapping:
           - dps_val: charge_now
@@ -260,6 +262,7 @@ secondary_entities:
       - id: 28  # timer_on
         type: integer
         name: value
+        optional: true
         unit: h
         range:
           min: 0