Skip to content

Commit

Permalink
Add support for Enbrighten curtain lights
Browse files Browse the repository at this point in the history
Issue #1989
  • Loading branch information
make-all committed Oct 4, 2024
1 parent da381a7 commit 4ede5ce
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 1 deletion.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,3 +697,4 @@ Further device support has been made with the assistance of users. Please consid
- [murch1](https://github.com/murch1) for contributing support for Brilliant ceiling fan with light.
- [NashHome](https://github.com/NashHome) for contributing support for Avatto curtain with double light switch.
- [ciscolyon69](https://github.com/ciscolyon69) for assisting with support for another variant of MatSee Plus 2ch bidirectional clamp meter.
- [cabmoomoo](https://github.com/cabmoomoo) for contributing support for Enbrighten curtain lights.
3 changes: 2 additions & 1 deletion DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ of device.
- Deta 6910HA series2 dimmer switch
- Dim2Warm G95 Gold 1800-2700K CCT lightbulb
- Dual-mode magic light string controller
- Embrighten Café string lights
- Enbrighten Café string lights
- Enbrighten Curtain lights
- Feit dimmer (may work with other brands that just have a switch, dimmer and
optional minimum brightness and bulb type)
- Feit RGBWW light bulb (like generic RGBWW, but without scene support)
Expand Down
107 changes: 107 additions & 0 deletions custom_components/tuya_local/devices/enbrighten_curtainlights.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Curtain lights
primary_entity:
entity: light
dps:
- id: 20
type: boolean
name: switch
- id: 21
type: string
name: effect
mapping:
- dps_val: colour
value: "off"
- dps_val: scene
value: Scene
- id: 24
name: rgbhsv
type: hex
optional: true
format:
- name: h
bytes: 2
range:
min: 0
max: 360
- name: s
bytes: 2
range:
min: 0
max: 1000
- name: v
bytes: 2
range:
min: 0
max: 1000
secondary_entities:
- entity: number
translation_key: timer
category: config
dps:
- id: 26
name: value
type: integer
unit: min
optional: true
range:
min: 0
max: 86400
mapping:
- scale: 60
step: 60
- dps_val: null
- entity: select
name: Scene
icon: "mdi:palette"
category: config
dps:
- id: 56
type: string
name: option
optional: true
mapping:
- dps_val: "AQAKMjIAAABkAABkAAAAAGQAeGQAAAAAZAA5BwAAAAA="
value: "Holiday"
- dps_val: "AQEKMjIAAABkAABkAAAAAGQAOQcAAAAAZAEsZAAAAAA="
value: "Valentine's Day"
- dps_val: "AQIKMjIAAABkAAhkAAAAAGIBGFgAAAAAZAAPZAAAAAA="
value: "Halloween"
- dps_val: "AQMKMjIAAABkAHhkAAAAAGQAOQcAAAAAXwCIYwAAAAA="
value: "St. Patrick's Day"
- dps_val: "AQQKMjIAAABkAABkAAAAAGQAOQcAAAAAZADwZAAAAAA="
value: "July 4th"
- dps_val: "AQUKMjIAAABkAHhkAAAAAGEAO2MAAAAAYgEYWAAAAAA="
value: "Mardi Gras"
- dps_val: "AQYKMjIAAABkAHhkAAAAAF8AiGMAAAAAXQC+ZAAAAABiARJVAAAAA\
GQBH0UAAAAAZAEsZAAAAAA="
value: "Spring"
- dps_val: "AQcKMjIAAABkAA9kAAAAAF0AvmQAAAAAYgAuZAAAAABSAL5kAAAAA\
GEAO2MAAAAAXwDYYQAAAAA="
value: "Summer"
- dps_val: "AQgKMjIAAABkAABkAAAAAGQACGQAAAAAYgAuZAAAAABhADtjAAAAA\
GQAD2QAAAAAZAEsZAAAAAA="
value: "Autumn"
- dps_val: "AQkKMjIAAABdAL5kAAAAAFIAvmQAAAAAZADwZAAAAABiARJVAAAAA\
F8A2GEAAAAAZAA5BwAAAAA="
value: "Winter"
- dps_val: "AQoKMjIAAABkAABkAAAAAGQACGQAAAAAZAAPZAAAAAA="
value: "Fire"
- dps_val: "AQsKMjIAAABiARJVAAAAAGQA8GQAAAAAYgAuZAAAAABhADtjAAAAA\
FIAvmQAAAAAXwDYYQAAAAA="
value: "Storm"
- dps_val: "AQwKMjIAAABkAA9kAAAAAFIAvmQAAAAAYgAuZAAAAABiARhYAAAAA\
F0AvmQAAAAAZAEfRQAAAAA="
value: "Gaming"
- dps_val: "AQ0KMjIAAABkAPBkAAAAAGIBElUAAAAAYgEYWAAAAAA="
value: "Space"
- dps_val: "AQ4KMjIAAABkAABkAAAAAGIBGFgAAAAAZADwZAAAAAA="
value: "Dark"
- dps_val: "AQ8KMjIAAABkAHhkAAAAAGIBElUAAAAAXwCIYwAAAABSAL5kAAAAA\
F0AvmQAAAAAXwDYYQAAAAA="
value: "Aquatic"
- dps_val: "ARAKMjIAAABkAABkAAAAAGEAO2MAAAAAZAB4ZAAAAABfANhhAAAAA\
GQA8GQAAAAAZAEsZAAAAAA="
value: "Party"
- dps_val: "AREKMjIAAABkAABkAAAAAGQAD2QAAAAAYQA7YwAAAABkAHhkAAAAA\
GQA8GQAAAAAYgESVQAAAABkAR9FAAAAAA=="
value: "Rainbows"

0 comments on commit 4ede5ce

Please sign in to comment.