Control your smart home with ACTIONABLE Notifications (Node-Red & Home Assistant)

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • The first 1,000 people to use the link will get a 1 month free trial of Skillshare:
    skl.sh/smarthomemakers12221
    Home assistant actionable notifications how to with Node-red
    ★My Gear★
    kit.co/smarthomemakers/gettin...
    kit.co/smarthomemakers/how-to...
    kit.co/smarthomemakers/conten...
    ★★Connect with me ★★
    ☕Coffee☕ www.buymeacoffee.com/natureboss
    🌐Web🌐 leonardosmarthomemakers.com/b...
    📘Facebook📘 / leonardosmarthomemakers
    🐦Twitter🐦 / smarthomemaker2
    #smarthomemakers #homeassistant #smartthome
    ★★ Contents ★★
    00:00 - Project Explained
    00:40 - Skillshare Sponsor
    01:46 - Node Red Template
    03:02 - Create a simple notification
    06:48 - Notifications with variables
    08:36 - Adding buttons to notifications
    13:21 - Using buttons to trigger automations
    16:21 - Demo
    DISCLAIMER: This RUclips video description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This allows us to continue to make videos like this.
    DISCLAIMER 2: This video has been sponsored by Skillshare which have reviewed the ad content. Skillshare had no say in the contents of the video or the title.
  • НаукаНаука

Комментарии • 56

  • @SmartHomeMakers
    @SmartHomeMakers  Год назад +5

    Link to blog post for code! leonardosmarthomemakers.com/control-your-smart-home-with-actionable-notifications/

  • @Th31Th3Only
    @Th31Th3Only 9 месяцев назад

    This is fantastic. I had something similar in HA automations but I much prefer Node Red as it's easier to visualize. I' followed it all and it worked first time. I'll be using this for a lot of things now.

  • @PileofKyle
    @PileofKyle Год назад

    I appreciate that you break things down and explain everything

  • @JMX246
    @JMX246 5 месяцев назад

    Great info! thanks for posting - new to Node Red - this really helps

  • @pouceo
    @pouceo Год назад

    Great post. Used it to send a notification to my phone if someone leave and my garage door is open, giving me the option to close it from the notification. One thing I would find more useful than the way presented is in the link to the blog post, the code is just all smooshed. If it was tabbed out and maybe commented I would have felt more comfortable using it.

  • @trt969
    @trt969 Год назад

    Thanks I have learned a lot....

  • @DanielSchless
    @DanielSchless Год назад

    Great idea

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Thanks Daniel! Are you thinking of creating one ?

  • @cjramseyer
    @cjramseyer Год назад

    Excellent video, and good explanation. Thank you for sharing. The demo helped me work out my own example. Do you have some examples of how you use this in your own setup?

  • @DanCatanase
    @DanCatanase 5 месяцев назад

    This is really good. Is there a way of using a similar node red flow to send a pop-up notification to your phone with a snapshot from the video doorbell when someone rings the bell?

  • @bertivogts9368
    @bertivogts9368 9 месяцев назад

  • @sycope
    @sycope Год назад

    Thanks for the code and video, I don't know if something has changed but I do not get the actionable part and clicking the notification just opens the companion app. I've been trying everything to get the actions but nothing.

  • @user-qw3vb2rw9x
    @user-qw3vb2rw9x Год назад

    in case you cannot change the {{message}}: in the Data field switch from JASONata to JSON editor

  • @robmiller3246
    @robmiller3246 Год назад

    Love this video, great work! I do have a question. How to add the option critical and how do you add destructive/true and volume level to the message text to json In HA automation I can add heses and it works perfect. I can not figure out how to in nodered though. Thank you

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад +1

      Can't remember on the fly! It should be part of the payload that you send over to node red! similar to how the data: section works in YAML

    • @robmiller3246
      @robmiller3246 Год назад

      @@SmartHomeMakers Yea I ahve tried to put it everywhere and to avail. lol

  • @1983yuval
    @1983yuval Год назад

    Great, I've been looking for something like this for a long time, can you share the automation code

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад +1

      Hi Yuval! The code is in the blog! thanks for watching!

  • @rolandboni8057
    @rolandboni8057 Год назад +1

    You don't need to format json. All can be in one line. It's just easier to read when formatted.

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Thanks Roland for the tip!

    • @BryanNystrom
      @BryanNystrom Год назад

      In addition to what Roland said, you could just type it out all in one line and then hit the "format json" button that is in the upper right corner and have the editor "pretty format" it for you.

  • @EricMorin
    @EricMorin 10 месяцев назад

    Hi Gio! been enjoying all your smart home tutorials, especially on node red. This one has been very useful to point me in the right direction for actionable notifications for all kinds of ha events. One thing I noticed recently though in my v3.1.0 instance... I'm getting a "deprecated API warning" and subsequent error in the debug console. It appears to happen with all event types for the "event:all" node type (not just mobile_app_notification_actions). Do we need to enter something into the event data field or return done in the $outputData for the topic to prevent this?

    • @SmartHomeMakers
      @SmartHomeMakers  10 месяцев назад

      It looks like the tutorial might be out of date, what does the message tell you? Does it point to some documentation? Thanks Eric for the info

  • @pupupuia
    @pupupuia 9 месяцев назад

    Thanks a lot! This helpt me a lot. But "unfortunately" it didn't work for me the way you showed the json. I had to format it like this to make it work (Without the "{{}}" )
    {
    "message": message,
    "title": title,
    "data": {
    "actions": [
    {
    "action": action,
    "title": actionTitle
    }
    ]
    }
    }

    • @SmartHomeMakers
      @SmartHomeMakers  9 месяцев назад

      Thanks pupupuia for your contribution!

  • @Error-403
    @Error-403 Год назад

    Hey @SmartHomeMarkers, how would you go about extending this to support multiple devices for the notification?

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Just go the action / call service again for the second device

    • @pupupuia
      @pupupuia 9 месяцев назад

      You can also create notification groups in Home Assitant :)

  • @Joseph-ko2kl
    @Joseph-ko2kl Год назад

    Thanks would love more NR info! Question- Maybe I missed it but the way this is set up is to notify you if you are not home correct? Did you just leave that part out? Assuming I understand what you did there is no way in the current flow for that part to happen unless you either added something to the current flow or connect the flow with a HA automation some how. I am correct? The way the example is set up the only way to currently make it work is to click the inject node?

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад +1

      Hi Joseph! You are correct! The video demonstrates a template or logic that you can then expand into whatever you want!

    • @Joseph-ko2kl
      @Joseph-ko2kl Год назад

      @@SmartHomeMakers Thanks good to know I am not as dense as I thought I was! LOL.

  • @LuUkaSs1994
    @LuUkaSs1994 8 месяцев назад

    Amigo lo habia logrado hace unas semanas atrás, y hoy no se puede. Es debido a una actualización? Yo uso android y logro llegar al punto en que me llega la notificación con los dos botones, pero al presionar cualquier botón, no hace nada. Intenté incluso copiando tu código y cambié las entitades y nada. A ti te funciona aún?

  • @jorgeelima
    @jorgeelima Год назад

    Is it possible to have notifications and actions on different devices?

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Sure you can pick setup a choose block and decide based on some logic who to alert!

  • @Skydiverjoe2871
    @Skydiverjoe2871 11 месяцев назад

    If I have multiple flows that use the "events-all" node, how do you differentiate from the different flows? I have a flow that sends me a notification and I have the yes and no buttons working. If i create another flow using the same process, with yes and no buttons, how does the events-all node know the difference? When I select yes or no, both flows activate for yes.
    for instance, is the trash taken out "yes/no" is one flow
    the other, did you clean the pool filter "yes/no"
    If I click the yes, then both flows for yes get run.

    • @Skydiverjoe2871
      @Skydiverjoe2871 11 месяцев назад

      Figured out that if I create a unique action name then after the events-all node I use a switch node and use those unique names it will work.
      Thank you for the videos, they help ALOT!

  • @TheRealAnthony_real
    @TheRealAnthony_real Год назад

    This is wiked ! I'm just wondering if this would work with Alex .. so for example if the light in a room goes under a certain lux value for Alexa to ask if you want to turn on lights for a certain brighter lux value ..

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Interesting use case! I think I have seen something like this around on the web

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Don’t think it would be trivial but worth a try

  • @phoenixmetodical
    @phoenixmetodical 8 месяцев назад

    tired to import your code but it say is not a JSON array

  • @gastonparadis5368
    @gastonparadis5368 Год назад

    Great, a lot of detailed explanations. But, I cannot get it to work. I got the connection with my iPhone for message and Hello World, but entering the code I received a message « object Object ». I must have error in the text. Could you export your NodeRed flow so that I can import it. Thanks

  • @egarywi1
    @egarywi1 Год назад

    Will this work for an Android phone as well

    • @BryanNystrom
      @BryanNystrom Год назад

      Yes, however icons are not supported, nor are images (for example sending a security cam still frame along with the message). Those are currently only supported on iOS.

    • @BryanNystrom
      @BryanNystrom Год назад

      Replying to my previous comment: However, I think you can still send icon info to the phone. It's just ignored and not shown....

    • @SmartHomeMakers
      @SmartHomeMakers  Год назад

      Thanks Bryan for the reply!

  • @casadeymse6934
    @casadeymse6934 6 месяцев назад

    Awesome ....thanks al ot.......but (there is always a but :) The options on my phone both says "null" (norwegian for zero?)

  • @Two_And_A_Half_Ben
    @Two_And_A_Half_Ben Год назад

    First!