Explorar el Código

change optionals, add details to binary sensor

JC Connell hace 1 año
padre
commit
c1ba47bb42

+ 3 - 2
custom_components/tuya_local/devices/gosund_SW2_dimmer_switch.yaml

@@ -9,7 +9,6 @@ entities:
       - id: 1
         type: boolean
         name: switch
-        optional: true
       - id: 3
         type: integer
         name: brightness
@@ -18,10 +17,12 @@ entities:
           max: 255
   - entity: binary_sensor
     name: Temperature Alarm
+    class: problem
+    category: diagnostic
     icon: "mdi:thermometer-alert"
     dps:
       - id: 101
         type: boolean
         name: sensor
         readonly: true
-        optional: true
+        optional: true