|
|
@@ -2,8 +2,6 @@ name: Roller blind
|
|
|
products:
|
|
|
- id: slrxhmozdm3qq9cl
|
|
|
manufacturer: GW Motor
|
|
|
- model: Roller blind
|
|
|
- name: Sub-device roller blind (gateway)
|
|
|
entities:
|
|
|
- entity: cover
|
|
|
class: blind
|
|
|
@@ -12,25 +10,13 @@ entities:
|
|
|
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
|
|
|
+ - dps_val: "0"
|
|
|
+ value: open
|
|
|
+ - dps_val: "1"
|
|
|
+ value: close
|
|
|
+ - dps_val: "2"
|
|
|
+ value: stop
|
|
|
+ - id: 101
|
|
|
# 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.
|