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.
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
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
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.
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.
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!
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?
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?
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!
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
@@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 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?
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 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!
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!
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?
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!
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!
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, 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.
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 :)
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
@@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).
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
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?
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 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
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.
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.
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 You leave off one stupid quotation mark along the way and everything falls apart apparently. LoL Fixed. My fault. Thank you for the video.
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
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
@@EverythingSmartHome actually I was hoping to find out how to integrate my android device in home assistant. Ill check out that pinned comment. Thanks!
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
Hey guys, there is an updated video on this here:
th-cam.com/video/v8fcwhko1k4/w-d-xo.html
Let me know, what's the longest time you've ever spent automating a simple task? 😅
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.
That's the worst! It's always those damn semi colons!
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
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
well i spend 3 months looking at home assistant so :p
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.
I have been playing with home-assistant for about 2 weeks and this have become m favourite go to channel to learning! So thanks! 🙏
Ah amazing thanks! Very much appreciate it! Hope your enjoying home assistant! 😅
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.
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!
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?
Thanks for this great tutorial! I always thought you had to pay for an notification service to use this feature. Many thanks
Glad it could help!
Could you please update the guide for Home Assistant 2021.5. There's a major change in iOS notification mechanic. Thank you.
What a useful video, I don't speak English but from the images I'll be able to do these automations
Thank you, glad it helped!
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.
Oh no that must have been soul destroying 😭
jesus, lol
Great video. Just the right amount of information. Cheers!
Yeah this is exactly what I needed! good up-to-date info!
Glad I could help, thanks for watching!
I second this. Most of the other android videos use old code that doesn't seem to work anymore :/
Great video. Looking forward to seeing this logged in your 'How to' guides!
Hey, thank you! Sorry I don't understand the last bit, where do you mean sorry?
@@EverythingSmartHome , I mean I was hoping you may document this in your blog on your own website
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 😃
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?
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!
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
@@PersonXes Unfortunately not. Reviewed all permissions to guarantee that no power saving is enabled. Using a Xiaomi Mi 9T as mobile phone.
Tick the box that says "Data" then insert the following:
ttl: 0
priority: high
Another really helpful video, thanks Lewis 👍🏻
Thanks Rob, very much appreciated 🙏
@@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.
Oh awesome, welcome to the amazing world of Home Assistant! Let me know if you have any suggestions for what you want to see
@@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?
I think the 10 hours automating for a 20 second task hits close to home for me 😂
Me too, I feel like I personally attacked myself 😂
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!
Thanks, appreciate it! 🙏 I think you can yes make sure to check the docs.
Happy new year to you!
Woohoo! exact i was looking for!
My man, your on a roll today!
@@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!
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 ;)
Thank you for watching! Thanks for the idea, definitely will add that to the list!
Man you're the best
can you make a tutprial ...how to install usb coral tpu on virtual machine and working with Frigate in home assistant?
So inspirational, thank you.
Thanks a lot.
Does the personn detection solution works with multiples caméras?
Thanks for watching! Sure you can add multiple cameras!
@@EverythingSmartHome thanks for your answers, would you make a video about multiples cameras setings?
Nice video. I assume the app on your phone will always have to be open
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!
hi nice video, i love it :) But i have a question, how does i make it to a persistent notification :D
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?
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?
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!
Sure, telegram is nice to use also!
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!
Hello! Check out the priority notifications in the docs, there is ways of doing alarm notifications I think depending on your device
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?
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
@@Cstraider I think so, I think you can achieve this with telegram
Amazing ! Thanks a lot!
very helpful. thank you!
Thank you for watching!
Nice video. Thx
Thanks for watching!
Great!!!
nice video .. but is not easy to reproduce in the 2021 versions , can we have an updated version please :D
Amazing videos....just slow down a bit so we can follow the steps
pause option ?
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.
Do you have your mobile device registered with your HA instance?
@@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.
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 :)
@@EverythingSmartHome thanks. So if I do a search on how to "have my device registers:" I should be able to find what I need?
It's not really something you need a guide for, you just open the mobile app and login :)
Wooow nice!
Thank you!
A dumb question : does the remote access to your Home Assistant instance has to be enabled for the notifications to work?
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
Is it possible to call a script as the action. If so what would the service data look like? Thanks
Yeah it definitely would just use the toggle script option from the UI
@@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).
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
@@EverythingSmartHome thanks. I'll give it a go and report back.
with a kid at home it takes months to finalize an automation. : )
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?
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
Thank you, appreciate the support! Try using a template as the state instead:
{{ state_attr('image_processing.doods_cam', 'total_matches') | int > 0}}
@@EverythingSmartHome
Thanks for the hint. I will try it and lit you know 🙏🏻
Please do, hope it works!
@@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
Please change image path to "/local/doods.jpg" - the www folder is translate to the local folder
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.
That's right yep
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.
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.
Hmm that is strange, have you checked your HA logs? That should tell you where you are going wrong
@@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.
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
Hi Nigel, you'll want to change the path, it should be "/local/cctv/snapshot.jpg"
medical alerts
Rather (too) hurried for me? Please slow down.
Check the pinned comment on this video, there is an updated guide :) also, feel free to use the slow motion button..
@1:29 So this isnt an everything you need to know guide? lol
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
@@EverythingSmartHome just messin with ya. Cheers.
@@EverythingSmartHome actually I was hoping to find out how to integrate my android device in home assistant. Ill check out that pinned comment. Thanks!
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
hi! the path for the image detection.. how you get that? /local/doods.jpg ? its something like camera name jpg?