Node Red + Wemos Mini + Home Assistant (MQTT)+Alexa | Tutorial # 34
Вставка
- Опубліковано 25 лис 2018
- In this tutorial, you will learn how to setup node red raspberry pi on Home Assistant and control Wemos D1 mini.
GitHub Code:
github.com/nassir-malik/Node-...
Function code:
var status = msg.payload;
msg={
"payload":status.toUpperCase(),
"topic": "netmedias/fan/switch",
};
return msg;
Home Assistant Config text:
mqtt:
password: "welcome"
light:
- platform: mqtt
name: "fan"
state_topic: "netmedias/fan/status"
command_topic: "netmedias/fan/switch"
optimistic: false
qos: 0
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: 192.168.0.22:3218
nodered:
title: Node-RED
icon: mdi:nodejs
url: 192.168.0.22:1880/ - Наука та технологія
Nice tutorial, delivered at an unhurried pace (many are too hurried). (Also nice to have it in a non-American 'nails down blackboard' accent!)
Great informative tutorial. Thank you for taking the time to help us all. Currently turning my house to smart mode - hassio on virtual box on a windows server. That server runs security cameras and recordings/motion detection, plex server, tonido. Have a few nodemcu's scattered around reading temps, humidity and motion.
Starting to dabble in the rgb led lighting now. Got non addressable currently but want to go full crazy mode with multiple addressable components!
I have basic mqtt knowledge so far, only have 1 device so far using it - my sonoff basic/tasmota that cuts the power to my DC power supply (old pc power supply that has temp and short circuit monitoring via nodemcu and sensors off amazon - adding flame sensor this weekend) that powers all nodes and leds so far. A great system from another youtuber - he inspired my whole house distribution dc power system.
You sir are inspiring me with your alexa and mqtt system. I will be setting up more mqtt points around my home - your video has pointed me in the right direction.
So a big thanks and huge hello from a viewer in Scotland. Have a great day :)
Gordon Peddie Thank you for your valuable feedback. Please keep us up to date on your progress and I appreciate any ideas or suggestions you may have. Good Luck with your projects.
Great work! Do you know by any chance how to get a response from Alexa when a trigger is succesful? Also how would you go about doing this with a zwave switch rather than MQTT? And finally how would you go about running an Automations or Scenes? I'm just starting with this, it's a super fun app indeed!!
Hi, is it possible to add 3 way control ( your previous tutorial ) so I can control using manual switch also . Thanks for your great video and I am your big fan .
Thank you so much
Thanks for an excellent tutorial. I implemented it and it almost works. Everything looks good. But when I say “Alexa turn on fan”, Alexa does not sat “OK”. And the fan switch just turns back off. The debug messages look exactly like yours. Discovery worked, MQTT shows connected . I use MQTT.fx and it shows the message correctly. I am sure that I made a mistake, but I have checked and rechecked. Any ideas?
Please make sure you are using the correct MQTT topic for status and command. I had the same issue due to using incorrect MQTT topic.
Hey, huge fan after i saw your videos nice job,
could you do a tutorial about the ifan02 as no one has one and i am having issues with the interface in home assistant where it does not show any controls apart from on and off, i could really use your help
I got your project on the todo list. Stay tuned.
i try to connect ultrasonic sensor to make water tank level work with the node-red dashboard
Yes, tutorial coming soon. Stay tuned.
How to add multiple devices in arduino code?
but in need one mor help how to make node-red dashboard and how to connect sensers with it
coz i need to make my house smart
I will be doing Node-Red dashboard video soon. Stay tuned.
When the state of an entity like your light is change in Home Assistant, how can Alexa know that the light is "on" or "off"? The hub has an option for receiving input but not sure how to use it properly yet.
You don't need to send state of a device to Alexa, just manage the state on device and execute command when send by Alexa. If device state is equal to command send by Alexa ignore it else execute it.
hii tank you bro for all you videos i gat mor help from your chanle
Thank you for your feedback.
Thanks helped allot
Steven Morris thank you for your feedback.
Any update on Alexa TTS on hassIO. Thanks like always for your Tutorials.
I have it on my list. Need some time to finish my current projects. Please stay tuned.
Nice Tutorial! Did anyone test this with Echo Dot 3. Generation?
Discovery does not work with Dot 3. If a device is already discovered with older dot then you can control it with dot 3.
i tried but not succeeded...
Why do i need nodeRed ? For alexa intrgration ?
Yes. As far as I know: The node-rede-contrib-alexa nodes emulate a HUE-Bridge, which is recognized by Alexa during scan in the local network. (No Cloud needed).
Great video but one request can you buzz out the "Alexa" word. lol i like the videos that bleep it out.
Sure, in future videos I will do that thanks
how can i call a script?
You can use "node-red-contrib-pythonshell" to execute Python script. Good Luck.
You can also use exec node also.
Would be awesome if, like some other UA-camrs, you muted your Alexa activation phrase. Every time you said it, my Alexas were activated. Go to Juan Tech’s HA channel. Would make this a better video IMHO. Cheers
Sure, will do it in future videos.
You know that you don’t need this awkward long pause after “Alexa”? It works perfectly when you seamlessly chain it with your command. Additionally, it helps you not sound stupidly nerdy in front of your friends.