Home Assistant Actionable Notifications on Android and iOS - Everything You Need to Know!

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 118

  • @EverythingSmartHome
    @EverythingSmartHome  3 ปีที่แล้ว +5

    Hey guys, there is an updated video on this here:
    th-cam.com/video/v8fcwhko1k4/w-d-xo.html

  • @EverythingSmartHome
    @EverythingSmartHome  4 ปีที่แล้ว +3

    Let me know, what's the longest time you've ever spent automating a simple task? 😅

    • @snipercision
      @snipercision 4 ปีที่แล้ว +4

      A whole weekend once, like from Friday after work all night then through to Sunday! Then to realise on the Sunday evening I missed a colon in my secrets yaml. I was so annoyed.

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว +1

      That's the worst! It's always those damn semi colons!

    • @058Jacko
      @058Jacko 4 ปีที่แล้ว

      Spent weeks using helpers to set if a person was home or not.
      Then another if house was empty.
      So..
      House Occupied: Yes
      User 1 - Away
      User 2 - Work
      User 3 - Home
      Guest Mode - Off

    • @KevinHoogdorp
      @KevinHoogdorp 3 ปีที่แล้ว

      About a week... and of course the cause was human error. I made a sensor template to change the visual state of a binary sensor from "on " and "off" to "open" and "closed".
      In the automation I set the trigger to the template's "open" and "closed" while setting the binary sensor as the entity smh. I'll never forget that one

    • @verwaeststijn
      @verwaeststijn 3 ปีที่แล้ว

      well i spend 3 months looking at home assistant so :p

  • @cgolebio
    @cgolebio 3 ปีที่แล้ว +1

    To answer your question, I think I spend way too much time planning the whole thing, the bigger picture, before doing a small component at a time. Then when I get to a component I research the heck out of it before doing it when if I just got out of my own way it would have been done by now and I could be onto the next thing...
    On a separate note, I really like your explanations and videos. I believe, though, there is some misinformation which may need to be corrected.
    For the automation on iOS, in this section where you enter...
    action_data:
    - identifier: HEAT_ON
    title: Heat on
    - identifier: HEAT_OFF
    title: Heat off
    It doesn't seem to do anything. According to the docs, it passes anything in this section back to the listener. The only thing necessary is the category, which will display whatever actions you define for the category. When the button is pressed, it's passed as the actionName. And whatever is entered statically in the action_data is passed also... so you could do some template variables here or something to make the listener automation more dynamic.
    Here is a quick excerpt from the listener I set up when testing.
    {
    "event_type": "ios.notification_action_fired",
    "data": {
    "action_data": [
    {
    "identifier": "HEAT_ON",
    "title": "Heat on"
    },
    {
    "identifier": "HEAT_OFF",
    "title": "Heat off"
    }
    ],
    "actionName": "HEAT_OFF",
    "categoryName": "heating",
    .....
    So all you really need is this... correct me if I am wrong?
    title: Temperature update
    message: "The current temperature is {{states(''sensor.living_room_temperature'')}}"
    data:
    push:
    category: 'heating'
    Appreciate the feedback and clarification.

  • @SandroPages
    @SandroPages 3 ปีที่แล้ว +1

    I have been playing with home-assistant for about 2 weeks and this have become m favourite go to channel to learning! So thanks! 🙏

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Ah amazing thanks! Very much appreciate it! Hope your enjoying home assistant! 😅

  • @MartinPugh
    @MartinPugh 3 ปีที่แล้ว +2

    Thanks for a really simple explanation of the Android notifications, especially the actionable ones. I've had a play with this on a few occasions but somehow the parts just never clicked into place for me until today. Tested again with the simple text and temperature template notifications worked first time. The actionable one stumped me for a while though. The notification was reaching my phone but the button press did nothing. Then I discovered the typo.... It's a real shame the "event type" on the Event trigger doesn't spell check... "mobile_app_notificaition_action" is never gonna work.
    Typo fixed and a simple action to enable away mode works fine. Now I'm down the rabbit hole again because I have to start rebuilding the automations I was going to use this for but hay, that's the fun of home automation.

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      That's awesome, makes me very happy that you were able to follow along and understand it, that's my whole goal with this channel! Thanks for the support!

  • @JJnATX
    @JJnATX 4 ปีที่แล้ว +1

    Nice starter video. Do you have an equivalent node-red flow you could share here? Also how could I look through several binary sensors (windows) to determine which of them is open?

  • @paulmurphy3735
    @paulmurphy3735 3 ปีที่แล้ว

    Thanks for this great tutorial! I always thought you had to pay for an notification service to use this feature. Many thanks

  • @tuanha2000vn
    @tuanha2000vn 3 ปีที่แล้ว +1

    Could you please update the guide for Home Assistant 2021.5. There's a major change in iOS notification mechanic. Thank you.

  • @foxcanaa
    @foxcanaa 4 ปีที่แล้ว

    What a useful video, I don't speak English but from the images I'll be able to do these automations

  • @Neejoh
    @Neejoh 4 ปีที่แล้ว +9

    I spend hours and hours automating an incredibly dump 20yo washing machine. The moment I was done, it broke and I had to get a new ‘smart’ washer.

  • @BenSycha
    @BenSycha 4 ปีที่แล้ว +1

    Great video. Just the right amount of information. Cheers!

  • @MarkGhali
    @MarkGhali 4 ปีที่แล้ว +2

    Yeah this is exactly what I needed! good up-to-date info!

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Glad I could help, thanks for watching!

    • @Ajicles
      @Ajicles 3 ปีที่แล้ว

      I second this. Most of the other android videos use old code that doesn't seem to work anymore :/

  • @frogeye22
    @frogeye22 4 ปีที่แล้ว

    Great video. Looking forward to seeing this logged in your 'How to' guides!

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Hey, thank you! Sorry I don't understand the last bit, where do you mean sorry?

    • @frogeye22
      @frogeye22 4 ปีที่แล้ว

      @@EverythingSmartHome , I mean I was hoping you may document this in your blog on your own website

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Oh I see, there is actually a how to guide already there for notification just not quite the same examples but I cover how to do everything 😃

  • @Refugado
    @Refugado 4 ปีที่แล้ว +1

    Great video, learned a lot. Thank you!!
    I'm facing an issue about notifications on my Android. Sometimes if the phone display is off, it won't pop up the notifications but if I unlock the phone, the notification appears. Already enabled all notification permission to HA app. Any clue on what may be happening?

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Thank you very much! It's most likely that your phone is putting the HA app to sleep, make sure that HA is not put to sleep in your phone's power options!

    • @PersonXes
      @PersonXes 3 ปีที่แล้ว

      Did you solve your problem? I have disabled all the power saving options etc on the home assistant app on Android bit the notifications are still having some problems

    • @Refugado
      @Refugado 3 ปีที่แล้ว

      @@PersonXes Unfortunately not. Reviewed all permissions to guarantee that no power saving is enabled. Using a Xiaomi Mi 9T as mobile phone.

    • @apc4884
      @apc4884 ปีที่แล้ว

      Tick the box that says "Data" then insert the following:
      ttl: 0
      priority: high

  • @rob1971
    @rob1971 4 ปีที่แล้ว +1

    Another really helpful video, thanks Lewis 👍🏻

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Thanks Rob, very much appreciated 🙏

    • @rob1971
      @rob1971 4 ปีที่แล้ว

      @@EverythingSmartHome I'm just getting started with Home Assistant and still looking for things to automate and ways to do it, so finding your your videos very informative and inspirational.

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว +1

      Oh awesome, welcome to the amazing world of Home Assistant! Let me know if you have any suggestions for what you want to see

    • @rob1971
      @rob1971 4 ปีที่แล้ว

      @@EverythingSmartHome I've been using the Loop system to get my electricity and gas usage readings into HA, but Loop are shutting down the older platform later this month meaning I'll have no way to access the informtation anymore.
      I'm due to get smart meters installed in about a month and have read in a few places that it's possible to pull the data from them into HA.
      I'd imagine quite a few other folks would like to be able to view their energy usage in HA, so perhaps that's a topic worth exploring?

  • @thatyoutubechannel5453
    @thatyoutubechannel5453 4 ปีที่แล้ว +7

    I think the 10 hours automating for a 20 second task hits close to home for me 😂

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว +2

      Me too, I feel like I personally attacked myself 😂

  • @onnodekker6799
    @onnodekker6799 3 ปีที่แล้ว

    Thank you for this awesome tutorial, it helped me very much. I integrated the camera notification in my alarm automation, so when the alarm is triggered I receive a message with picture on my phone. But when my alarm is triggered I want also to hear an alarm sound on my Android phone, even when my phone is on mute or on vibrate. I read it can be done with Android and has something to do with channels. But I can't get it to work. Do you have an idea? Thank you and keep up the good work in 2021!

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Thanks, appreciate it! 🙏 I think you can yes make sure to check the docs.
      Happy new year to you!

  • @M1L31
    @M1L31 3 ปีที่แล้ว

    Woohoo! exact i was looking for!

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว +1

      My man, your on a roll today!

    • @M1L31
      @M1L31 3 ปีที่แล้ว

      @@EverythingSmartHome YOU are the guy who makes it possible - I was struggeling with my smart home since November last year - just found your channel and BOOM - 2 days and got all working - NICE!

  • @caiosaoliveira
    @caiosaoliveira 4 ปีที่แล้ว

    Great content! Thanks for sharing! Also, which is your camera and lens setup? Looks well! Maybe an idea for a video to share your setup ;)

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Thank you for watching! Thanks for the idea, definitely will add that to the list!

  • @vcrahul
    @vcrahul 3 ปีที่แล้ว

    Man you're the best

  • @pabll0
    @pabll0 ปีที่แล้ว

    can you make a tutprial ...how to install usb coral tpu on virtual machine and working with Frigate in home assistant?

  • @TinWhistler
    @TinWhistler 4 ปีที่แล้ว

    So inspirational, thank you.

  • @Bruno-vz8vk
    @Bruno-vz8vk 3 ปีที่แล้ว

    Thanks a lot.
    Does the personn detection solution works with multiples caméras?

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว +1

      Thanks for watching! Sure you can add multiple cameras!

    • @Bruno-vz8vk
      @Bruno-vz8vk 3 ปีที่แล้ว

      @@EverythingSmartHome thanks for your answers, would you make a video about multiples cameras setings?

  • @garysteo3398
    @garysteo3398 4 ปีที่แล้ว

    Nice video. I assume the app on your phone will always have to be open

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Thanks! No it works in the background if thats what you mean. So long as you don't disable the app manually you will receive the notifications at anytime. Hope that helps!

  • @sgaard49
    @sgaard49 3 ปีที่แล้ว

    hi nice video, i love it :) But i have a question, how does i make it to a persistent notification :D

  • @edpete97
    @edpete97 3 ปีที่แล้ว

    Great video. I'm having trouble making sense of the doods integration. The automation works when I press the 'Execute' button and I get the .jpg as well as the live feed when I tap. What's not happening is the automation. I would expect that if a Person or Car is detected, I would get a push notification, correct?

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Hey Erik, that's correct so that would indicate that the trigger in the automation isn't working, what is the trigger you are using?

  • @sshlomi
    @sshlomi 3 ปีที่แล้ว

    Thanks so much for the video.
    You can make a video How can this be done in telegram?
    Most of the TH-cam videos on HA & Telegram are very basic and I am looking for something more advanced.
    Again, thank you so much great channel!

  • @romanykemp9042
    @romanykemp9042 3 ปีที่แล้ว

    So I need the ability for my phone to sound some kind of alarm for certain things - house on fire, etc - even if I have it on vibrate. Does the HA automation part gives you that ability or is that dependent on configuring notifications on your phone? Certain alerts a pop up message is fine - others I want to know about NOW - and need to be woke up if I'm sleeping...looking for any suggestions you may have. Thanks!

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Hello! Check out the priority notifications in the docs, there is ways of doing alarm notifications I think depending on your device

  • @Cstraider
    @Cstraider 3 ปีที่แล้ว

    Love the vid! QQ, is there any way to do the opposite? receive a notification from an android device on home assistant and trigger an automation?

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Thank you! Yes it's in this video, the bit where you press a button from the android notification and it triggers an automation on home assistant

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      @@Cstraider I think so, I think you can achieve this with telegram

  • @giordanogobbo
    @giordanogobbo 4 ปีที่แล้ว

    Amazing ! Thanks a lot!

  • @dablet
    @dablet 4 ปีที่แล้ว

    very helpful. thank you!

  • @marclievens9864
    @marclievens9864 4 ปีที่แล้ว

    Nice video. Thx

  • @apaex1
    @apaex1 3 ปีที่แล้ว

    Great!!!

  • @xxPaulMxx
    @xxPaulMxx 3 ปีที่แล้ว

    nice video .. but is not easy to reproduce in the 2021 versions , can we have an updated version please :D

  • @waelkambris6188
    @waelkambris6188 3 ปีที่แล้ว

    Amazing videos....just slow down a bit so we can follow the steps

    • @HetH92
      @HetH92 3 ปีที่แล้ว

      pause option ?

  • @MaxGoddur
    @MaxGoddur 3 ปีที่แล้ว

    First time playing with notifications and right about 2:49 in your video timeline you call out a service entry which was: notify.mobile_app_andriod. My drop-down does not have that entry and wondering did you create it if so how did you create it. Only listing close to the one you called out were: notify.notify and notify.persistant_notification. Thank you.

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Do you have your mobile device registered with your HA instance?

    • @MaxGoddur
      @MaxGoddur 3 ปีที่แล้ว

      @@EverythingSmartHome, yeah kind of figured it was a missing step that I know nothing about. Do you have a video showing how that gets done? Thank you for your reply.

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      I think I mentioned in the video you need to have your device registered. I do not have a video on this but you know where we are on the discord server if you need help :)

    • @MaxGoddur
      @MaxGoddur 3 ปีที่แล้ว

      ​@@EverythingSmartHome thanks. So if I do a search on how to "have my device registers:" I should be able to find what I need?

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      It's not really something you need a guide for, you just open the mobile app and login :)

  • @zp3727
    @zp3727 4 ปีที่แล้ว

    Wooow nice!

  • @mrstepien1
    @mrstepien1 3 ปีที่แล้ว

    A dumb question : does the remote access to your Home Assistant instance has to be enabled for the notifications to work?

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว +1

      Certainly not a dumb question! Remote access doesn't need to be enabled for notifications to be sent, but you will need them for the actionable bit to happen

  • @davidtjac
    @davidtjac 3 ปีที่แล้ว

    Is it possible to call a script as the action. If so what would the service data look like? Thanks

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Yeah it definitely would just use the toggle script option from the UI

    • @davidtjac
      @davidtjac 3 ปีที่แล้ว

      @@EverythingSmartHome not sure I understand. My Action is call service which is a notify.phone then in the service data I have the message and want a clickable image that calls a script (the script is a momentary switch for a Mqtt gate opener).

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Ah sorry I see what your saying. So the easiest way would be to have the action call an automation which calls the script. So combine the image example and the actionable notification example from this video and in your "action" automation, call the script from there.
      It should work like that in theory but I haven't tested it

    • @davidtjac
      @davidtjac 3 ปีที่แล้ว

      @@EverythingSmartHome thanks. I'll give it a go and report back.

  • @irtibatkisileri222
    @irtibatkisileri222 2 ปีที่แล้ว

    with a kid at home it takes months to finalize an automation. : )

  • @boopeshkumarprabhakaran
    @boopeshkumarprabhakaran 2 ปีที่แล้ว

    image not getting updated in notifications...shows old snap...but even I check locally with file manager ...it's the latest image...any way to fix this?

  • @ahmedzaki2668
    @ahmedzaki2668 4 ปีที่แล้ว

    you are doing amazing videos. I was waiting for this video to check my notification configuration for the Doods camera. It's the same as you but not working. I can get a live stream from the same camera but not Doods
    alias: person detected
    description: send a notification and switch on 1f hall light when a person detected
    trigger:
    - platform: state
    entity_id: image_processing.doods_entrancemjpeg
    attribute: total_matches
    from: '0'
    condition: []
    action:
    - service: notify.mobile_app_zaki
    data:
    title: person detected
    message: a person has been detected in your entrance
    data:
    attachment:
    url: /config/www/doods/doods.jpg
    entity_id: camera.doods_cam
    mode: single

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว +1

      Thank you, appreciate the support! Try using a template as the state instead:
      {{ state_attr('image_processing.doods_cam', 'total_matches') | int > 0}}

    • @ahmedzaki2668
      @ahmedzaki2668 4 ปีที่แล้ว

      @@EverythingSmartHome
      Thanks for the hint. I will try it and lit you know 🙏🏻

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Please do, hope it works!

    • @ahmedzaki2668
      @ahmedzaki2668 4 ปีที่แล้ว

      @@EverythingSmartHome my dear. no words can explain how I appreciate your effort. thank you. it did work. but can't get the image. only basic notification.
      alias: person detected
      description: send a notification and switch on 1f hall light when a person detected
      trigger:
      - platform: template
      value_template: >-
      {{ state_attr('image_processing.doods_entrancemjpeg', 'total_matches') |
      int > 0}}
      condition: []
      action:
      - service: light.turn_on
      data: {}
      entity_id: light.d21_4f_hallway
      - service: notify.mobile_app_zaki
      data:
      title: 人間を監視しました。
      message: 玄関に人がいま
      す。
      data:
      attachment:
      url: /config/www/doods/doods.jpg
      url: /lovelace/test
      mode: single

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Please change image path to "/local/doods.jpg" - the www folder is translate to the local folder

  • @MaxGoddur
    @MaxGoddur 3 ปีที่แล้ว

    I explained this to someone in this fashion. If you are going through the steps for setting up notifications and do not see the notify.mobile then you have not setup your mobile phone with the mobile app. This is what creates the notify.mobile_xxx_xxx that is shown in the video. If you don't set up the mobile app then notify.mobile_xxx_xxx in the step shown will not appear. Got it working with some help.

  • @pedrotomaz5259
    @pedrotomaz5259 4 ปีที่แล้ว

    Hello, is there anyone who has tried to send notifications from home assistant tts to android smartphone through the channel: alarm_stream?
    I did it for a few days, but I had to go back with a snapshot and I still hadn't recorded this automation and as much as I try now I can't do it at all !! Can anyone help?
    I have HA on windows.

  • @Usafle
    @Usafle 3 ปีที่แล้ว

    I must be messing something up. My 'actionable buttons' only come up as the word NULL after the message notification. I checked and triple checked the whole {data: /actions: / -action:} code but still, comes up NULL after the message.

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Hmm that is strange, have you checked your HA logs? That should tell you where you are going wrong

    • @Usafle
      @Usafle 3 ปีที่แล้ว

      @@EverythingSmartHome You leave off one stupid quotation mark along the way and everything falls apart apparently. LoL Fixed. My fault. Thank you for the video.

  • @nigelholland24
    @nigelholland24 4 ปีที่แล้ว

    cannot get this nto work i get the notiforcation but no picture
    alias: camera triggered
    description: ''
    trigger:
    - platform: state
    entity_id: binary_sensor.phillips_motion_sensor
    from: 'off'
    to: 'on'
    condition: []
    action:
    - service: camera.snapshot
    data:
    filename: /config/www/cctv/shapshot.jpg
    entity_id: camera.ipcam_mainstreamprofile
    - service: notify.mobile_app_rmx2001
    data:
    title: Dectection alert
    message: Dectection
    data:
    image: /config/www/cctv/snapshot.jpg
    clickaction: /lovelace/camera
    mode: single

    • @EverythingSmartHome
      @EverythingSmartHome  4 ปีที่แล้ว

      Hi Nigel, you'll want to change the path, it should be "/local/cctv/snapshot.jpg"

  • @kwclarksr
    @kwclarksr 2 ปีที่แล้ว

    medical alerts

  • @DavePawson
    @DavePawson 3 ปีที่แล้ว

    Rather (too) hurried for me? Please slow down.

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      Check the pinned comment on this video, there is an updated guide :) also, feel free to use the slow motion button..

  • @Huy0035
    @Huy0035 3 ปีที่แล้ว

    @1:29 So this isnt an everything you need to know guide? lol

    • @EverythingSmartHome
      @EverythingSmartHome  3 ปีที่แล้ว

      How to setup the app isn't related to notifications, since it does far more than notifications.
      Also, how did you manage to ignore the pinned comment saying that there is an updated video? lol

    • @Huy0035
      @Huy0035 3 ปีที่แล้ว

      @@EverythingSmartHome just messin with ya. Cheers.

    • @Huy0035
      @Huy0035 3 ปีที่แล้ว

      @@EverythingSmartHome actually I was hoping to find out how to integrate my android device in home assistant. Ill check out that pinned comment. Thanks!

  • @scout-ww4ck
    @scout-ww4ck 3 ปีที่แล้ว

    um......the 9:48
    '''
    actionName: "NO_MATTER_WHAT_YOU_PUT_IN_CONFIGURATION.YAML 8:56 ______THIS_MUST_BE_UPPER_CASE!!!!!!!!"
    '''
    wasted lots of time on this LOL

  • @Kiloptero
    @Kiloptero ปีที่แล้ว

    hi! the path for the image detection.. how you get that? /local/doods.jpg ? its something like camera name jpg?