-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for GW Motor Roller Blind
- Loading branch information
1 parent
52fe8a4
commit af328a2
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
custom_components/tuya_local/devices/gw_motor_roller_blind.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,50 @@ | ||
name: Roller blind | ||
products: | ||
- id: slrxhmozdm3qq9cl | ||
manufacturer: GW Motor | ||
model: Roller blind | ||
name: Sub-device roller blind (gateway) | ||
entities: | ||
- entity: cover | ||
class: blind | ||
dps: | ||
- id: 1 | ||
name: control | ||
type: string | ||
mapping: | ||
- conditions: | ||
- dps_val: ["0", "1", "2"] | ||
mapping: | ||
- dps_val: "0" | ||
value: open | ||
- dps_val: "1" | ||
value: close | ||
- dps_val: "2" | ||
value: stop | ||
# set options when there are non during startup | ||
- dps_val: null | ||
mapping: | ||
- dps_val: open | ||
value: open | ||
- dps_val: close | ||
value: close | ||
- dps_val: stop | ||
value: stop | ||
- id: 2 | ||
# this is percent_control in API Explorer but we'll use it to get the | ||
# last position set, as the device cannot report its current_position. | ||
# will be incorrect when manually opening / closing. | ||
name: current_position | ||
type: integer | ||
unit: "%" | ||
optional: true | ||
range: | ||
min: 0 | ||
max: 100 | ||
- id: 101 | ||
name: position | ||
type: integer | ||
unit: "%" | ||
range: | ||
min: 0 | ||
max: 100 |