Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GarageDoorOpener service without payload for doorOpen #140

Open
g-lom opened this issue Oct 31, 2018 · 0 comments
Open

GarageDoorOpener service without payload for doorOpen #140

g-lom opened this issue Oct 31, 2018 · 0 comments

Comments

@g-lom
Copy link

g-lom commented Oct 31, 2018

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;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant