Support group events for AC switches and binary sensors. Fixes #53065. (#53384)

* Support group events for AC switches and binary sensors. Fixes #53065.

* Review comments
This commit is contained in:
Børge Nordli 2021-07-23 18:45:31 +02:00 committed by GitHub
parent 952cb964c8
commit 87165d6133
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 9 deletions

View file

@ -19,6 +19,7 @@ COMMAND_ON_LIST = [
"On",
"Up",
"Stop",
"Group on",
"Open (inline relay)",
"Stop (inline relay)",
"Enable sun automation",
@ -26,11 +27,17 @@ COMMAND_ON_LIST = [
COMMAND_OFF_LIST = [
"Off",
"Group off",
"Down",
"Close (inline relay)",
"Disable sun automation",
]
COMMAND_GROUP_LIST = [
"Group on",
"Group off",
]
ATTR_EVENT = "event"
SERVICE_SEND = "send"