Closed larrybell closed 6 years ago
What exactly is not working?
On Mon, 9 Apr 2018 at 06:34, larrybell notifications@github.com wrote:
I can't figure out how to get the dimming to work. Can you provide an example?
Thank you. larry
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/originallyus/node-red-contrib-alexa-local/issues/58, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu1WGyECQLoLtPbc3PBGw5kLHHfINquks5tmp59gaJpZM4TLwqg .
I think I have the same issue.
When I say turn Foo to 30% the node just tells me this:
But I can see, that it is actually getting the percentage value also:
So what do I have to do to get the percentage value als payload?
ebartz,
That is exactly my problem.
Are you very new to NodeREd? Have you read the extensive information provided by alexa node itself?
On Wed, 2 May 2018 at 02:00, larrybell notifications@github.com wrote:
ebartz,
That is exactly my problem.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/originallyus/node-red-contrib-alexa-local/issues/58#issuecomment-385757922, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu1WDQtMSdiVxAiij-KwjE55u-26n_-ks5tuLDGgaJpZM4TLwqg .
@larrybell: It just does not return the percentage value as payload.
If you set your debug node to return the full msg object:
You can finally see that the percentage value is inside an object called bri:
@torinnguyen: I am not very new to NodeRed but I don't use it much. Most of the nodes that I use just return a json object as payload which was why I expected this also to happen here.
The needed information can also be found in the index.html. I don't know where this could have been found but maybe you should also have those informations on the Readme.md because this is what gets displayed on NodeRed and GitHub.
it's a design choice. It's designed to be directly compatible with button, toggle in Dashboard UI and sonoff nodes. It is simpler to handle simple strings than json object. If you are savvy enough to able to handle json objects, it should be trivial to add a function node to massage the output.
The information can be found directly in the Node info. Readme.md is not the correct place for such detailed information.
I can't figure out how to get the dimming to work. Can you provide an example?
Thank you. larry