Don’t grant location permissions to the app when you install it and the device tracker and sensors won’t get created. If you don’t want gps you can use nmap or something for home/away detection.
You could use the wifi sensor = your SSID as a home/away sensor
Is there a way to cancel a notification ?
E.g.: a notification is sent to me and my wife’s phone when the alarms hasn’t been armed. Would be nice if the notification was removed from the other phones the moment the alarm was armed.
If you use the app as device tracker, this is an attribute “battey_level” of the tracker.
For me, with 3 differents samsung models, it seems to use the model name and not the device name.
I’m doing something wrong?
E.g. in this case:
He is using SM-G975F and not Galaxy S10+.
If you think it’s not normal tell me and I can open an issue on GitHub.
Yes you can with the tag:
Send this message:
title: "test title"
message: "test message"
data:
tag: myTag
Cancel it:
message: clear_notification
data:
tag: myTag
Yeah they are all different! Here is one for example
- id: NotifyLandingLightOn
alias: Hue - Landing light on longer than x amount of time
description: ''
trigger:
- device_id: 68cd986a7b754aee97572ef6ff36eb8f
domain: light
entity_id: light.landing_light
for:
hours: 0
minutes: 15
seconds: 0
platform: device
type: turned_on
condition: []
action:
service: notify.mobile_app_pixel_3
data:
message: Landing Light has been on for longer than 15 mins
data:
actions:
- action: "turnlandinglightoff"
title: "Turn Off"
Then the action
- id: ActionTurnLandingLightOff
alias: Action - Button - Turn Landing light off
trigger:
platform: event
event_type: mobile_app_notification_action
event_data:
data: turnlandinglightoff
condition: []
action:
entity_id: light.landing_light
service: light.turn_off
But this is causing 5 other actions to trigger, but not all of them are triggering!
Figured it out! My error!
data: turnlandinglightoff
Should be
action: turnlandinglightoff
Awesome, thanks !
@dshokouhi Where i can find documentation about ttl
and priority
options?
Can they go inside an automation in the -service
options?
Is this automation correct?
- alias: Notifica aumento temperatura esterna
trigger:
platform: numeric_state
entity_id: sensor.temperature_158d0001b95f60
above: 30
condition:
condition: time
after: '09:00'
before: '00:00'
action:
- service: notify.mobile_app_sm_g955f
data:
message: Temperatura esterna superiore a 30°C
title: HomeAssistant
data:
ttl: 0
priority: 'high'
It seems in this way i don’t get the notification…
Sorry to bump in with a more or less unrelated question.
I was fiddling around with this notification thingy here, and came to think that it would be nice if one of the options (Actionable Notification) were to get a full size image if that was in the notification. So if i passed a still from my IP camera from HASS, I could send that link as an action via the external Hass address
example: http://myhassio.com/local/image.jpg
How would that automation look like in yaml?
What service would that be under?
And is it even possible even though it seems like a simple thing imo.
Never mind, just found it my self
Hi guys! I’m currently on iOS but want to make the switch to Android.
Currently I’m using my location to trigger a certain actionable notification. I have a VPN on demand profile which is used to track my location when I’m out of my network. Is this possible with the Android Companion too?
FWIW I’m not using the companion app for notifications yet (waiting for critical notifications) but I’m on a OP7Pro using a Telegram bot and I get the same issue with that. My other half has a OP6 and she doesn’t seem to get it but she’s into social media so wakes her phone more often. It’s not something I’ve really looked into but I don’t think this is HA related, it looks like a broader issue with OP devices to me.
With this update i’m not able to use the app anymore. It says:
Unable to register application
Please check to ensure you have the mobile_app integration enabled on your home assistant instance
Hmm, don’t think its OP related, since I was using pushover, that failed me never, always instant…
Now using companion with high priority, first tests are good
Already removed my ‘telegram’-app, that didn’t take too long
Tested the Actionable notifications, and it seems to work great from the first time for me. This was the biggest wish I had with this app, and the first version already looks very promising.
Great work again, thank you again! (running on Galaxy S9+ with Android 10 btw)
Is there any way to attach an image that’s stored in the config folder? Example of I mean (this is not working, although there is an image at that location):
- data:
message: Motion in garage
data:
image: /config/Garage/garage.jpg
actions:
- action: stream_garage
title: Stream
Put your images in the www folder and then try like this:
data:
message: Motion in garage
data:
image: "local/Garage/garage.jpg"
actions:
- action: stream_garage
title: Stream
Would be great, allthough never got it work with local images, especially if you do a snapshot and overwrite the image…
With html5 before, it would always display an cached image… Therefore I am not sending local images anymore, but an unique url…
Let me know if the local images work , if you overwrite an image