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: