Skip to content

Changing the State of an Accessory "Outside of HomeKit" #405

Open
@AlexMaghen

Description

@AlexMaghen

I'm using your GarageDoor example and I have it working but I am confused about one thing: In the very simple Python file I've included, the "GarageDoor" class's change_state() function gets called beautifully when a user taps on the accessory in iOS Home (or wherever). But what happens if the door changes state for other reasons (user opens it manually, whatever)? I don't understand how I instruct the accessory that I've created that it's status HAS CHANGED from inside my code. I think I need to use an Accessory base class function but I'm having trouble understanding this from the documentation.

Anyone's help most appreciated with this amazing library!

Ale
Garagey.txt
x

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