-
Hello Andreas, Alexa sends payload.brightness 60 or payload.powerState "ON". I think i could handle ON into TRUE without JSON (because i do not have a plan) but how can i make it dynamic so it can handle the alexa-node values? { Long story short, and i am compete new to JSON, how can i handle the payloads of Alex-node dynamically? Hope i didnt explained it to confusing! Danke dir! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hallo Marc, For Alexa Commands you need the "on device activity" feature. This one is listening for everything the echo dot heard. It is in an array, i don't know the exact datapoint. You'll figure it out. Then you need to switch out all commands that you say, so maybe "Licht Wohnzimmer 50 Prozent" and the switch sends the payload to the action for hue. (You need to make a action for every light level) or using variables to change it. Did you get what I mean? Gruß |
Beta Was this translation helpful? Give feedback.
-
@MCMK74 Your workaround is already the best solution for Node-RED. Thar was exactly my Idea how it could work. I use my Flow actually to connect my Homematic Switches to HUE and from Ipad Shortcut> MQTT > HUE. Mostly triggering Scenes as recommended. I have for example just some special Voice activated Flows like a "Alexa, Bedtime" that turns on the Bed-Lamps nad turns the motion Sensor off. Or "TV on" that activates a dim TV scene for HUE and turns the AVR and TV on. Otherwise i just use my Echo-Dot for ON / OFF. I recommend using all Voice features from Alexa to HUE, i think the best way is to use the HUE Plugin for Alexa instead of doing it in Node-RED. Hope that helped. EDIT: Wait, what Alexa node returned the dimming value as a number? Gruß und schönes WE |
Beta Was this translation helpful? Give feedback.
-
Hi Andreas, Yes, alexa returns numbers in brightness! See my Screenshot above. Danke dir und schönes WE! |
Beta Was this translation helpful? Give feedback.
@MCMK74 Your workaround is already the best solution for Node-RED. Thar was exactly my Idea how it could work.
The bad thing is that the Alexa API outputs "twenty percent" as a string instead of a number. Thats kinda annoying. Would it be a Number we could figure out something better for dimming values.
I use my Flow actually to connect my Homematic Switches to HUE and from Ipad Shortcut> MQTT > HUE. Mostly triggering Scenes as recommended. I have for example just some special Voice activated Flows like a "Alexa, Bedtime" that turns on the Bed-Lamps nad turns the motion Sensor off. Or "TV on" that activates a dim TV scene for HUE and turns the AVR and TV on.
As well i use the HUE Buttons …