Add switch platform to Tuya Light (dj) devices (#58196)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
75e561f1fa
commit
8bfd5e4d06
1 changed files with 11 additions and 0 deletions
|
@ -64,6 +64,17 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
||||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
# Light
|
||||||
|
# https://developer.tuya.com/en/docs/iot/f?id=K9i5ql3v98hn3
|
||||||
|
"dj": (
|
||||||
|
# There are sockets available with an RGB light
|
||||||
|
# that advertise as `dj`, but provide an additional
|
||||||
|
# switch to control the plug.
|
||||||
|
SwitchEntityDescription(
|
||||||
|
key=DPCode.SWITCH,
|
||||||
|
name="Plug",
|
||||||
|
),
|
||||||
|
),
|
||||||
# Cirquit Breaker
|
# Cirquit Breaker
|
||||||
"dlq": (
|
"dlq": (
|
||||||
SwitchEntityDescription(
|
SwitchEntityDescription(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue