Skip to content

Commit

Permalink
Add Curtains with feedback
Browse files Browse the repository at this point in the history
These follow the same dps layout as QS C01 curtains, but the current
position is accurately fed back on the position dp, as well as using
that dp to request a desired position.

Discussion #1681
  • Loading branch information
make-all committed Feb 25, 2024
1 parent a5ca25f commit 6c9551d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ of device.
- Simple garage door
- Simple blind controller (two variants - `simple_blinds` lets the position be set, but does not trust it to accurately reflect the current position always, `position_blinds` does trust the position to accurately reflect the current position)
- Simple gate opener (simple garage door with timer)
- Curtain with feedback (same DP layout as QS C01 curtains, but reads back the current_position from the position as some of these seem to accuraately report position as well)
- Abalon BCM700D curtain motor (likely to work with other brands)
- AGL Ultracontato r2 door controller
- AGL Ultra Magic gate opener
Expand Down
53 changes: 53 additions & 0 deletions custom_components/tuya_local/devices/curtain_with_feedback.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Curtain module
primary_entity:
entity: cover
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: 2
name: position
type: integer
unit: "%"
range:
min: 0
max: 100
mapping:
- step: 10
- id: 2
name: current_position
type: integer
secondary_entities:
- entity: select
name: Motor reverse mode
category: config
icon: "mdi:sign-direction"
dps:
- id: 8
name: option
type: string
mapping:
- dps_val: forward
value: Forward
- dps_val: back
value: Back
- entity: number
name: Travel time
category: config
icon: "mdi:timer"
dps:
- id: 10
name: value
type: integer
unit: s
range:
min: 1
max: 60

0 comments on commit 6c9551d

Please sign in to comment.