Skip to content

Commit

Permalink
TurnOn/Off with ExtendedLinkedSwitchingGroup via cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-th committed Nov 12, 2023
1 parent 1151522 commit fbe681a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hmip_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fbe681a

Please sign in to comment.