Maybe this is the issue?
one thing to note is that i did have to hunt down and side load the notifications for Android tv app on my shield tvs as i found not find it the the Google Play store
Oh really? I was able to get in on the store. Region locked maybe?
The android TV store does not have the same items as the play store for your phone I believe.
thatās correct and also irrelevant. this was a Android tv specific that used to be on the android tv app store but is no longer there. There was also a corresponding app for mobile i believe to forward your mobile notifications to the tv
Iām also having a slight issue with notifications. I have notifications working reliably using the group notify feature. However, randomly I will not receive the snaphsot on certain devices but do receive them for the same notification on other devices. Sometimes one device will stop receiving the snapshot images in notifications for days at a time. No idea what is going onā¦
Would it be possible to add an option to enable channel: alarm_stream for notifications on Android? As described here: Critical notifications | Home Assistant Companion Docs
yea, lemme try to find a link to the app for the mobile device. Try This
Oh wow this is neat! Didnāt know about this. I will try to implement this this weekend, I got some extra time. The TTS feature is pretty neat
This must be an issue related with the Notification Group feature in HA. I remember a little while back this feature was broken, but they may have revamped it since. Upon testing today, it does seem to work now. Itās just may be an issue with HA. Try using some delays, see if that helps with performance.
I have tried some delays but doesnāt seem to make a difference. Iāve noticed when on LAN it seems to work reliably. I am wondering if it happens when internet connection isnāt strong, which is unfortunately often in my area. Do you know if this were the case, whether there is anything that can help with this?
Wish I could help with this one. It likely is the connection, as I do not think the image is uncompressed. I am unsure how to verify or do that.
As AI is a bit more involved, I am not going to incorporate that into this blueprint. However, you got me intrigued on the idea, and a video went up on some cool use cases. Then I figured out how to use TTS on the mobile devices, and now it was game over!
I at least wanted to share with you some scripts I use with this feature. You just need to provide the correct path for your image. My script uses the default file path used in the blueprint. If you do not use that, I cannot help.
Just a sentence in your notification, no attached image, but you could attach it. However, the text will be truncated so it kinda makes that useless.
sequence:
- action: google_generative_ai_conversation.generate_content
data:
prompt: >-
Describe in one sentence what is in the image. If you see a person,
describe the person and the describe the colors of the clothes. If the
person is carrying something, desribe what they carry. Don't describe
walls or doors or mention the porch.
filenames:
- /media/snapshots/front_porch_camera/last_motion.jpg
response_variable: response
- action: notify.mobile_app_pixel_8
metadata: {}
data:
message: The Front Porch Camera detected {{ response.text }}
alias: "Camera: TTS"
description: ""
Using TTS
sequence:
- action: google_generative_ai_conversation.generate_content
data:
prompt: >-
Describe in one sentence what is in the image. If you see a person,
describe the person and the describe the colors of the clothes. If the
person is carrying something, desribe what they carry. Don't describe
walls or doors or mention the porch.
filenames:
- /media/snapshots/front_porch_camera/last_motion.jpg
response_variable: response
- action: notify.mobile_app_pixel_8
metadata: {}
data:
message: TTS
data:
tts_text: The Front Porch Camera detected {{ response.text }}
ttl: 0
priority: high
alias: "Camera: TTS"
description: ""
@TheRealFalseReality great blueprint, thank you! I wish I found it before spending hours trying to do the same thing lolā¦ I donāt know if you thought about it but may I suggest supporting multiple cameras in the same automation? I thought I could add multiple entities but they all send the snapshot of the first one. Having a dynamic notification based on the entity triggered would avoid having to duplicate and maintain the automation for each camera. Let me know if you think thatās possible
I wanted to do all that, but It can be very complicated and I am not skilled enough to do that!
Hereās something you may like if you use Frigate and want LLM:
I will likely be using this system for my cameras, as I use Frigate now, and may not be using or updating this blueprint as often.