soef / ioBroker.alexa

MIT License
25 stars 52 forks source link

alexa state changes will not be acknowleged by adapter #6

Open modmax opened 6 years ago

modmax commented 6 years ago

After pressing a button the state change is not acknowleged. Everythinh works but just the adapter acknowledgment is missing.

Apollon77 commented 6 years ago

You mean the "commands" ? Then why a ack is needed? For buttons acks do not have ameaning because other things are updated.

E.g. when you press "Play" then the status and played song is updated, but the play button is not meaning anything.

modmax commented 6 years ago

an ack ist just to be there ro acknowledge that the button has been pressed and the adapter has done something .... most people does not matter on this behaviour ... its just a oersonal interest from my side to fave acknowledgment from the adapter cause i have scripts which are lustenung to such acknowledgments ... so its an idea for an enhacement ... if the decision is to to not implement this then rhus enhabement can be closed ....

Apollon77 commented 6 years ago

We will see, but to clarify:

a set "ack" flag means that the adapter states that this is the official value of the state. For buttons it is a common behaviour to leave them in ack=false state because the button itself is only a trigger for a real action, So checking if the button press worked is mainly done by monitoring the state taht chould change through the button press.

Also for Homematic devices (where the ack idea comes from) buttons are never officially ack-ed. they stay as ack=false.