فهرست منبع

LSC plugs - fix lights

Patryk M. Gutowski 1 سال پیش
والد
کامیت
dbf0d61fa3
2فایلهای تغییر یافته به همراه20 افزوده شده و 6 حذف شده
  1. 10 3
      lscp01.yaml
  2. 10 3
      lscp02.yaml

+ 10 - 3
lscp01.yaml

@@ -182,18 +182,25 @@ text_sensor:
       entity_category: diagnostic
 
 light:
-  - platform: status_led
+  - platform: binary
     name: "led"
     internal: true
     id: led
+    output: red_led
+
+
+output:
+  - platform: gpio
+    id: red_led
     pin:
       number: P8
-      inverted: true
+      # inverted: true
+
 
 status_led:
     pin:
       number: P10
-      inverted: true
+      # inverted: true
 
 binary_sensor:
   - platform: status

+ 10 - 3
lscp02.yaml

@@ -182,18 +182,25 @@ text_sensor:
       entity_category: diagnostic
 
 light:
-  - platform: status_led
+  - platform: binary
     name: "led"
     internal: true
     id: led
+    output: red_led
+
+
+output:
+  - platform: gpio
+    id: red_led
     pin:
       number: P8
-      inverted: true
+      # inverted: true
+
 
 status_led:
     pin:
       number: P10
-      inverted: true
+      # inverted: true
 
 binary_sensor:
   - platform: status