Skip to content

.selectGroup() seems to be required. Is it? #13

@AlexMaghen

Description

@AlexMaghen

First, thank you for this excellent thing! :)

If I run...

hs.selectAccessory('Floor_Light')
hs.printSelectedItems()
hs.setStates("0")

No Accessories are returned and the setStates() does not work (logs attached), even though the accessory name provided comes straight out of "printAccessories()".

If I add in selectGroup('lights') as follows, two lights are returned and the action is properly executed on both...

hs.selectAccessory('Floor_Light')
hs.selectGroup('lights')
hs.printSelectedItems()
hs.setStates("0")

I've also included the super simple test python file ("Homebridge_ctl.txt").

Can't quite figure what I'm doing wrong here. THANKS for any help!

Alex

homescript_debug_2022.01.20.log
homescript_exception_2022.01.20.log
Homebridge_ctl.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions