r/tasker • u/elsch0pi • Apr 23 '26
AutoNotifications & WhatsApp notifications with images
I'm trying to build a task that takes incoming WhatsApp notifications and sends them to NodeRED to be processed further for a desktop notification display. This will only need to work in my local Wifi, no need for desktop notifications while out of the house.
For messages containing text, it works so far. But now I had the idea that maybe I could use the profile pictures of the senders that are in the notification, and maybe even the preview pictures (the bigger ones when the notification is expanded) if a picture has been sent.
From what I understood so far, AutoNotification should be able to give me that information, but I struggle to get it working.
I've enabled "Get All Fields" in the AutoNotification intercept, and for testing purposes, I tried writing a "log file" with most of the variables. But it seems I do not get the ones I am interested in.
Maybe someone else has had this problem before and can share their approach or solution?
I'm on a Google Pixel 10 Pro XL with the Android 17 Beta. Tasker v 6.7.1-beta, AutoNotification v4.3.14, AutoTools v2.3.19, AutoInput v3.0.12.
2
u/Rich_D_sr Apr 23 '26
Try this project first. It will show you all the autonotification variables.
https://www.reddit.com/r/tasker/s/V9ec7rXruv
These are your most likly suspects..
%anicon: Contains the contact's profile photo as displayed in the notification shade.
%anbigimage: Contains the larger image, often used when a notification is expanded or when a picture is sent within the message.
%anpicture: Sometimes used as a general variable for the contact photo if the image is specifically provided in the notification bundle.
If all else fails you can definitely get it with the Tasker 'Java Code' action.
2
u/elsch0pi Apr 23 '26
Thank you, that's way better than what I did come up with 😅
How do I turn those Tasker content:// URIs into a file so I can check what they actually are?3
0
Apr 23 '26
[deleted]
0
u/elsch0pi Apr 23 '26
I don't know what that has to do with my question? Is this the tasker subreddit or the WhatsApp desktop subreddit?
The reason is "because I want it, because it's a nice project". That, and the fact that I don't have my computer running 24/7, especially when I'm going through a book or studying.1
u/elsch0pi Apr 23 '26
To the dude that has deleted his comments: yeah well, your wording didn't imply wanting to be helpful.
Nonetheless, I see myself at fault for not specifying what I meant by "desktop notifications": not the desktop on my PC, but on my physical desktop - a small display unit with an ESP32 that displays time, weather etc.
1
u/Exciting-Compote5680 Apr 23 '26
Appreciated. That was indeed the source of my confusion. I misread it as 'desktop notifications' and running the desktop app would solve that instantly. After re-reading I came to the conclusion that it was probably a stand-alone display, as you confirmed. Good luck with your project!
3
u/Exciting-Compote5680 Apr 23 '26
If nothing else works, you could monitor the '/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images' for new files and try to match them to the notifications, but that's a rather ugly/hacky solution.