From fbe681a99c6c019d67f5cd4034c0c4d5e7332eb3 Mon Sep 17 00:00:00 2001 From: username081581 Date: Sun, 12 Nov 2023 14:45:13 +0100 Subject: [PATCH] TurnOn/Off with ExtendedLinkedSwitchingGroup via cli --- hmip_cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hmip_cli.py b/hmip_cli.py index 09c97afd..1a7d77c7 100644 --- a/hmip_cli.py +++ b/hmip_cli.py @@ -806,6 +806,12 @@ def main(): logger.error("Could not find group %s", args.group) return + if args.device_switch_state is not None: + if isinstance(group, ExtendedLinkedSwitchingGroup): + group.set_switch_state(args.device_switch_state) + + command_entered = True + if args.group_list_profiles: command_entered = True for p in group.profiles: