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

Lublueblu SL60D: mark activate, charge, direction_control optional

These values are not always repoted by the device, improve detection by marking
them as optional.

Issue #1829
Jason Rumney 1 год назад
Родитель
Сommit
eaa680d4e8
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml

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

@@ -11,9 +11,11 @@ primary_entity:
     - id: 2
     - id: 2
       type: boolean
       type: boolean
       name: activate
       name: activate
+      optional: true
     - id: 3
     - id: 3
       type: boolean
       type: boolean
       name: charge
       name: charge
+      optional: true
     - id: 4
     - id: 4
       type: string
       type: string
       name: command
       name: command
@@ -72,6 +74,7 @@ primary_entity:
     - id: 12
     - id: 12
       type: string
       type: string
       name: direction_control
       name: direction_control
+      optional: true
       mapping:
       mapping:
         - dps_val: forward
         - dps_val: forward
           value: forward
           value: forward