Closed raufis27 closed 4 years ago
It is expected behavior.
Result on "set {device} to 50%" command will be:
msg: {
"payload":"on",
"on":true,
"bri":128,
"percentage":50,
...
...
}
Sorry, I don't get it. If I ask Alexa, or use Alexa app to change brightness, I get only on/off command. Ho do I get percentage of brightness ?
The payload attribute of the msg is either on or off. Bri and percentage are attributes on the msg, not on the payload. Are you checking the full message or just the payload?
I have debug node connected to output of hub and "device".
I see what do you mean now. Thank you so much!
Feel free to reopen if you find any inconsistency with the documentation
SUMMARY
% doesn't work. Only ON of OFF command output.
ECHO DEVICES
MODULE VERSION
0.1.10
CONSOLE OUTPUT
STEPS TO REPRODUCE
Alexa, set {device} to 50%
EXPECTED RESULTS
msg.payload : string[2] "50"
ACTUAL RESULTS
msg.payload : string[2] "on"