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/
  • Наука та технологія

КОМЕНТАРІ • 36

  • @jimford8108
    @jimford8108 Рік тому

    Nice tutorial, delivered at an unhurried pace (many are too hurried). (Also nice to have it in a non-American 'nails down blackboard' accent!)

  • @gogsy2576
    @gogsy2576 5 років тому

    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 :)

    • @netmedias7657
      @netmedias7657  5 років тому

      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.

  • @RonenLin
    @RonenLin 5 років тому

    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!!

  • @capextechnicalservicesllc3054
    @capextechnicalservicesllc3054 4 роки тому

    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 .

  • @HuyTran-vv9yu
    @HuyTran-vv9yu 4 роки тому

    Thank you so much

  • @tommh44
    @tommh44 5 років тому

    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?

    • @netmedias7657
      @netmedias7657  5 років тому

      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.

  • @rahulrass
    @rahulrass 5 років тому

    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

    • @netmedias7657
      @netmedias7657  5 років тому +1

      I got your project on the todo list. Stay tuned.

  • @fayezbinslum1388
    @fayezbinslum1388 5 років тому

    i try to connect ultrasonic sensor to make water tank level work with the node-red dashboard

    • @netmedias7657
      @netmedias7657  5 років тому

      Yes, tutorial coming soon. Stay tuned.

  • @vaibhavnaware9544
    @vaibhavnaware9544 2 роки тому

    How to add multiple devices in arduino code?

  • @fayezbinslum1388
    @fayezbinslum1388 5 років тому

    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

    • @netmedias7657
      @netmedias7657  5 років тому

      I will be doing Node-Red dashboard video soon. Stay tuned.

  • @JasonWho
    @JasonWho 4 роки тому

    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.

    • @netmedias7657
      @netmedias7657  4 роки тому +1

      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.

  • @fayezbinslum1388
    @fayezbinslum1388 5 років тому

    hii tank you bro for all you videos i gat mor help from your chanle

  • @stevenmorris5546
    @stevenmorris5546 5 років тому

    Thanks helped allot

    • @netmedias7657
      @netmedias7657  5 років тому

      Steven Morris thank you for your feedback.

  • @ssinseeme
    @ssinseeme 5 років тому

    Any update on Alexa TTS on hassIO. Thanks like always for your Tutorials.

    • @netmedias7657
      @netmedias7657  5 років тому +1

      I have it on my list. Need some time to finish my current projects. Please stay tuned.

  • @Take5Instead4
    @Take5Instead4 5 років тому

    Nice Tutorial! Did anyone test this with Echo Dot 3. Generation?

    • @netmedias7657
      @netmedias7657  5 років тому +1

      Discovery does not work with Dot 3. If a device is already discovered with older dot then you can control it with dot 3.

    • @jeffersantosss
      @jeffersantosss 5 років тому +1

      i tried but not succeeded...

  • @3adelz90
    @3adelz90 5 років тому

    Why do i need nodeRed ? For alexa intrgration ?

    • @Take5Instead4
      @Take5Instead4 5 років тому +1

      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).

  • @rafaelmaldonado635
    @rafaelmaldonado635 5 років тому +1

    Great video but one request can you buzz out the "Alexa" word. lol i like the videos that bleep it out.

    • @netmedias7657
      @netmedias7657  5 років тому

      Sure, in future videos I will do that thanks

  • @radiaddic
    @radiaddic 5 років тому

    how can i call a script?

    • @netmedias7657
      @netmedias7657  5 років тому

      You can use "node-red-contrib-pythonshell" to execute Python script. Good Luck.

    • @netmedias7657
      @netmedias7657  5 років тому

      You can also use exec node also.

  • @marcuscicero9735
    @marcuscicero9735 4 роки тому

    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

  • @ArnaudMEURET
    @ArnaudMEURET 4 роки тому

    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.