I get the following error when trying to import:
while scanning an anchor in “”, line 3, column 16: description: > ^ expected alphabetic or numeric character, but found ‘;’ in “”, line 3, column 19: description: > ^
Nice workaround for the inconsistency in Android / iOS mobile app notifications, really clever idea!
There’s a problem with line 80, you have a hardcoded camera.demo_camera entity id that was probably mistakenly left over from when you were testing. It should be entity_id: !input camera
Thank you very much!
I don’t have an iOS device, so I couldn’t test it, but according to the documentation it should work
I did left the camera.demo_camera there accidentally. Now it’s fixed. Thank you again.
It would be nice to specify the save path on the snapshot. I currently do this but I store it in the /media/folder/last_motion.jpg so you can use the media viewer. I also store it in a secondary archive folder so you have history (/media/folder/archive/%date%.jpg) but that seems like a different blueprint.
Sadly, I couldn’t select any of my Aeotec motion sensors. They are not binary_sensors, but rather sensors sending a 0, 3, or 8 for no motion, Accel, and Motion respectively.
You could edit the blueprint and change the “motion_sensor” part to make it point to a binary sensor or whatever your doorbell shows up as, everything else should be the same if you have a camera device to get the snapshot from
Just remove line 14 (device_class: motion) and it might just work
Thanks, this indeed showed my button. Unfortunately this doesn’t make the template work. Because my button is changing from ‘off’ to ‘Single’ or ‘Double’ I think it needs an ‘On’ or ‘Off’ at least with a motion sensor it works. But with the button it does not.
Thank you, I’ve made the template sensor. But I just checked and the Xiaomi states never change. The state is always ‘Off’ . It does however give this :
last_action: double
voltage: 3.02
battery_level: 45
friendly_name: Boven 1
Thanks for all the help already, but it seems I have to dive in a little more. Just started with Home Assistant and getting to understand automations better is something I will try to figure out more during the holidays.
I see the problem, your “single” or “double” value isn’t the status but an attribute
Replace is_state('switch.yourbuttonhere', 'single') with is_state_attr('switch.yourbuttonhere','last_action','single') and do the same for double, it should work the
Also you can test that part in HA by click Developer Tools and then Template, you can paste the value_template part in there and see if it returns what you’re expecting
Waw love this blueprint. (Or is it perhaps blueprint on general that I like???)
Anyway thanks for this one
Some changes I have made to in in my version :
-other devices as trigger - Nest doorbell button push worls sweet
-ios critical alert : so it works even when my phone is silent (which it is 99% of the time - the wonders world of the watch )
Any way I can contribute to your without polluting the blueprint market woth simular blueprints
can you add a condition? for example i have an input Boolean if the house is in away mode. can you add a condition if i am away send snapshot if motion.
I like this idea, but I think it is a different blueprint. I wanted to keep this simple, and not fill the user’s SD cards with the snapshots, so that is why I rejected my first idea to include the date in the file name. I choose to save the snapshots to the www folder, because it does not require additional configuration. (media_dirs needs to be set up beforehand)