@@ -0,0 +1,89 @@
+name: Smart curtain robot
+products:
+ - id: kcy0x4pi
+ name: Dongguan LY1678-2 Electric Curtain Motor
+primary_entity:
+ entity: cover
+ name: Curtain
+ class: curtain
+ dps:
+ - id: 1
+ name: control
+ type: string
+ mapping:
+ - dps_val: open
+ value: open
+ - dps_val: close
+ value: close
+ - dps_val: stop
+ value: stop
+ - id: 3
+ name: current_position
+ type: integer
+ unit: "%"
+ range:
+ min: 0
+ max: 100
+ - invert: true
+ optional: true
+ persist: false
+ - id: 7
+ name: action
+ - dps_val: opening
+ constraint: current_position
+ conditions:
+ - dps_val: 0
+ value: opened
+ - value: opening
+ - dps_val: closing
+ - dps_val: 100
+ value: closed
+ - dps_val: null
+ - value: closing
+ - id: 12
+ name: fault_code
+ type: bitfield
+secondary_entities:
+ - entity: select
+ category: config
+ name: Closed position
+ icon: "mdi:arrow-u-down-left"
+ - id: 101
+ name: option
+ - dps_val: "left"
+ value: "left"
+ - dps_val: "right"
+ value: "right"
+ - entity: sensor
+ class: temperature
+ - id: 103
+ name: sensor
+ unit: C
+ class: measurement
+ class: illuminance
+ - id: 104
+ unit: lx
+ class: battery
+ category: diagnostic
+ - id: 13