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

Introduce of the "changed" attribute #64

Closed
datech opened this issue Oct 1, 2019 · 2 comments
Closed

Introduce of the "changed" attribute #64

datech opened this issue Oct 1, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@datech
Copy link
Owner

datech commented Oct 1, 2019

To be able to find what was changed in the device state, the output payload coming from the Amazon Echo Hub node will include a "changed" attribute.

"changed" attribute is a hashmap of all changed attributes and the corresponding old values.

Examples

ON command

{
   "on":true,
   "bri":254,
...
...
   "changed":{
      "on":false
   },
...
}

Dim command

{
   "on":true,
   "bri":100,
...
...
   "changed":{
      bri: 254
   },
...
}
@datech datech added the enhancement New feature or request label Oct 1, 2019
@datech datech added this to the v0.1.9 milestone Oct 1, 2019
@datech datech self-assigned this Oct 1, 2019
datech added a commit that referenced this issue Oct 1, 2019
datech added a commit that referenced this issue Oct 1, 2019
@Barabba11
Copy link

Thank you, a lot
For me not really clear, the first case is it (?): I gave Alexa command on, and it was off before?
Second case: I tell Alexa dim 100, and it was 254?
In this way I've to make a function, store all the given values (but after restart I don't have them, trouble) and check for changes to understand the new command? Seems a bit complicated. Better the method of Verjus that give on payload the new command directly..

@datech
Copy link
Owner Author

datech commented Oct 6, 2019

#67 will be implemented instead

@datech datech closed this as completed Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants