dump_devinfo: iot light strip commands (#1286)

This commit is contained in:
Steven B.
2024-11-20 14:06:59 +00:00
committed by GitHub
parent 5eca487bcb
commit 0e5013d4b4
3 changed files with 95 additions and 7 deletions

View File

@@ -453,6 +453,8 @@ LIGHT_STATE_SCHEMA = Schema(
"mode": str,
"on_off": Boolean,
"saturation": All(int, Range(min=0, max=100)),
"length": Optional(int),
"transition": Optional(int),
"dft_on_state": Optional(
{
"brightness": All(int, Range(min=0, max=100)),
@@ -460,6 +462,7 @@ LIGHT_STATE_SCHEMA = Schema(
"hue": All(int, Range(min=0, max=360)),
"mode": str,
"saturation": All(int, Range(min=0, max=100)),
"groups": Optional(list[int]),
}
),
"err_code": int,