Last active
June 11, 2022 15:55
-
-
Save RamonBell/6562ce42e5cf4ace2cf3e467fd98b376 to your computer and use it in GitHub Desktop.
Automation for android phone to open a view based on location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
****change the source to your mobile app location source and the zone to what ever zone you want | |
https://companion.home-assistant.io/docs/notifications/notification-commands/ | |
In order to ge this to work the first time you have to give the app permission to do this. This is phone specific so you will have to look it up | |
alias: Open shopping list for me at stores | |
description: 'Opens mobile app shopping list when you get to the store' | |
trigger: | |
- platform: geo_location | |
source: sensor.pixel_6_geocoded_location | |
zone: zone.safeway | |
event: enter | |
- platform: geo_location | |
source: sensor.pixel_6_geocoded_location | |
zone: zone.walmart | |
event: enter | |
condition: [] | |
action: | |
- service: notify.mobile_app_pixel_6 | |
data: | |
message: command_webview | |
title: /lovelace/shopping-list | |
- service: notify.mobile_app_sm_g996u | |
data: | |
message: command_webview | |
title: /lovelace/shopping-list | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment