-
Notifications
You must be signed in to change notification settings - Fork 8
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
[ENHANCEMENT] Enter On / Off Payload by flow or global variable #30
Comments
It's a good idea, I'll add it to the list. Fancy submitting a PR? |
Good idea |
Hi, I am using the node for couple of days, and found that missing such a feature limits automation process a lot. For example, if I turn on manually my lamp, the node does not report that change in Alexa app. So, it turns out that the code for an input that can change the internal status of the node is rather simple. I am not a close friend to pull requests, so I am giving my code modifications here, hoping that someone will update them in the main branch or at least use them to modify their local version of the node. The first change is in index.html, And the second change is index.js, the following code has to be inserted at the end, right above the
With this modification the node will have input and will change its internal state according to the msg.payload. Input payload should be I hope this will help someone! |
Hey biddster,
first I want to thank you for all your work!
I'm on a testrun with your nodes right now and I'm wondering if you would be able to allow as to enter a flow or global variable as the on or off payload.
Why?
We can set a slider for brightness of a lamp or the temperature of a room on the node-red dashboard.
This chosen value will be saved to a flow variable and if I input this as the On or Off payload in your node it would be possible to get semi automatic local alexa node for newer devices (echo dot 3 f.e.).
Thank you in advance!
The text was updated successfully, but these errors were encountered: