Skip to content

GarageDoorOpener service without payload for doorOpen #140

Open
@g-lom

Description

@g-lom

In the GarageDoorOpener service there is no "OPEN" command for the topic 'setTaget'

I included the following line in service.json and set it to value 0 in the config file:

"GarageDoorOpener": {
"topic": [
{"name": "setDoor"},
...
],
"payload": [
{"name": "doorOpen", "optional": true},
{"name": "doorClosed", "optional": true},
...
]
},

the file services/GarageDoorOpene.js should also be expanded with:

   if (typeof settings.payload.doorOpen === 'undefined') {
        settings.payload.doorOpen = Characteristic.CurrentDoorState.OPEN;
    }

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