Bläddra i källkod

fix(mty2_breaker): add missing switch

Jason Rumney 16 timmar sedan
förälder
incheckning
7d1aa0c484
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      custom_components/tuya_local/devices/mty2_breaker.yaml

+ 7 - 0
custom_components/tuya_local/devices/mty2_breaker.yaml

@@ -3,6 +3,13 @@ products:
   - id: 4tpaetqac6lap6mv
   - id: 4tpaetqac6lap6mv
     model: MTY2
     model: MTY2
 entities:
 entities:
+  - entity: switch
+    translation_key: breaker
+    category: config
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
   - entity: text
   - entity: text
     name: Relays on
     name: Relays on
     category: config
     category: config