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

Human presence detector: move debug to attribute

PR #2146
Jason Rumney 1 год назад
Родитель
Сommit
ba5b87d8a9
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      custom_components/tuya_local/devices/human_presence_detector.yaml

+ 3 - 7
custom_components/tuya_local/devices/human_presence_detector.yaml

@@ -23,6 +23,9 @@ primary_entity:
     - id: 1
       type: string
       name: raw_state
+    - id: 120
+      type: string
+      name: debug
 secondary_entities:
   - entity: binary_sensor
     class: motion
@@ -122,10 +125,3 @@ secondary_entities:
         range:
           min: 0
           max: 10
-  - entity: sensor
-    category: diagnostic
-    name: debug
-    dps:
-      - id: 120
-        type: string
-        name: sensor