Vamp
4 سال پیش
|
@@ -0,0 +1,96 @@
|
|
|
|
|
+name: DIGOO DG-SP202
|
|
|
|
|
+primary_entity:
|
|
|
|
|
+ entity: switch
|
|
|
|
|
+ class: outlet 1
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 1
|
|
|
|
|
+ type: boolean
|
|
|
|
|
+ name: switch
|
|
|
|
|
+ - id: 18
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ name: current_a
|
|
|
|
|
+ readonly: true
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 1000
|
|
|
|
|
+ - id: 19
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ name: current_power_w
|
|
|
|
|
+ readonly: true
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 10
|
|
|
|
|
+ - id: 20
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ name: voltage_v
|
|
|
|
|
+ readonly: true
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 10
|
|
|
|
|
+secondary_entities:
|
|
|
|
|
+ - entity: switch
|
|
|
|
|
+ name: outlet 2
|
|
|
|
|
+ class: switch
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 2
|
|
|
|
|
+ type: boolean
|
|
|
|
|
+ name: switch
|
|
|
|
|
+ - entity: sensor
|
|
|
|
|
+ category: diagnostic
|
|
|
|
|
+ class: voltage
|
|
|
|
|
+ name: Voltage
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 20
|
|
|
|
|
+ name: sensor
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ class: measurement
|
|
|
|
|
+ unit: V
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 10
|
|
|
|
|
+ - entity: sensor
|
|
|
|
|
+ category: diagnostic
|
|
|
|
|
+ class: current
|
|
|
|
|
+ name: Current
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 18
|
|
|
|
|
+ name: sensor
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ class: measurement
|
|
|
|
|
+ unit: mA
|
|
|
|
|
+ - entity: sensor
|
|
|
|
|
+ category: diagnostic
|
|
|
|
|
+ class: power
|
|
|
|
|
+ name: Power
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 19
|
|
|
|
|
+ name: sensor
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ class: measurement
|
|
|
|
|
+ unit: W
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 10
|
|
|
|
|
+ - entity: number
|
|
|
|
|
+ category: config
|
|
|
|
|
+ name: Timer 1
|
|
|
|
|
+ icon: "mdi:timer"
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 9
|
|
|
|
|
+ name: value
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ range:
|
|
|
|
|
+ min: 0
|
|
|
|
|
+ max: 86400
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 60
|
|
|
|
|
+ step: 60
|
|
|
|
|
+ - entity: number
|
|
|
|
|
+ category: config
|
|
|
|
|
+ name: Timer 2
|
|
|
|
|
+ icon: "mdi:timer"
|
|
|
|
|
+ dps:
|
|
|
|
|
+ - id: 10
|
|
|
|
|
+ name: value
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ range:
|
|
|
|
|
+ min: 0
|
|
|
|
|
+ max: 86400
|
|
|
|
|
+ mapping:
|
|
|
|
|
+ - scale: 60
|
|
|
|
|
+ step: 60
|