-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support Smart curtain robot Dongguan LY1678-2
- Loading branch information
almirus
committed
Mar 2, 2024
1 parent
535da78
commit 3ab8b3e
Showing
1 changed file
with
89 additions
and
0 deletions.
There are no files selected for viewing
89 changes: 89 additions & 0 deletions
89
custom_components/tuya_local/devices/dongguan_electric_curtain.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
mapping: | ||
- invert: true | ||
optional: true | ||
persist: false | ||
- id: 7 | ||
name: action | ||
type: string | ||
mapping: | ||
- dps_val: opening | ||
constraint: current_position | ||
conditions: | ||
- dps_val: 0 | ||
value: opened | ||
- value: opening | ||
- dps_val: closing | ||
constraint: current_position | ||
conditions: | ||
- dps_val: 100 | ||
value: closed | ||
- dps_val: null | ||
value: closed | ||
- value: closing | ||
- id: 12 | ||
name: fault_code | ||
type: bitfield | ||
secondary_entities: | ||
- entity: select | ||
category: config | ||
name: Closed position | ||
icon: "mdi:arrow-u-down-left" | ||
dps: | ||
- id: 101 | ||
type: string | ||
name: option | ||
mapping: | ||
- dps_val: "left" | ||
value: "left" | ||
- dps_val: "right" | ||
value: "right" | ||
- entity: sensor | ||
class: temperature | ||
dps: | ||
- id: 103 | ||
name: sensor | ||
type: integer | ||
unit: C | ||
class: measurement | ||
- entity: sensor | ||
class: illuminance | ||
dps: | ||
- id: 104 | ||
name: sensor | ||
type: integer | ||
unit: lx | ||
class: measurement | ||
- entity: sensor | ||
class: battery | ||
category: diagnostic | ||
dps: | ||
- id: 13 | ||
type: integer | ||
name: sensor | ||
unit: "%" | ||