Просмотр исходного кода

Tera W01 EV charger: make some dps optional

Issue #2236
Jason Rumney 1 год назад
Родитель
Сommit
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