Skip to content

Instantly share code, notes, and snippets.

@RamonBell
Last active June 11, 2022 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RamonBell/6562ce42e5cf4ace2cf3e467fd98b376 to your computer and use it in GitHub Desktop.
Save RamonBell/6562ce42e5cf4ace2cf3e467fd98b376 to your computer and use it in GitHub Desktop.
Automation for android phone to open a view based on location
****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