Hi, is there anyway to change my phone Android media volume and put the notification in vibration mode when HA detects my phone location is in office?
I installed the HA companion app in my Android phone and I can see all phone sensors in my HA. And I want to have an automation in my HA to change the media volume and notification mode based on my location.
Not directly as far as I am aware. It’s all about the phone being the control, rather than the controlled.
I use an app called MacroDroid for a few things, it can do various things based on triggers including location and visible networks, it also has a webhooks integration that lets you control your phone via a url, something you could send from HA via command line. Not sure how secure that is as I haven’t tried it.
Do not disturb command perhaps works for you?
Not sure if it can be set to vibrate but looking in the settings on the phone there seems to be a custom mode, have a look if that works for you.
If yes then dnd is possible.
I use this every evening to mute the phone at bed time and unmute in the morning
There are quite a few commands aren’t there. The only ones I can think of that I use are stuff like sending SMS and making calls - the former can be done using a notification integration in HA and the latter I can’t think of a use for in the context of HA.
Very comprehensive - shame I didn’t find it on my first search of the docs
One thing you can consider is that if its possible via Tasker then you can have the companion app trigger Tasker by sending an intent. Then from Tasker you listen for that intent and perform whatever the action is.
Hi, thanks for sharing the info. I can now set the volume and ringer mode from my HA. However, I noticed there is one minor problem. It seems it can only configure my phone when I unlocked my phone not when my phone is in locked. Anyway to overcome this?