Home Assistant - Set the smartphone's ring mode if you are somewhere
Emiliano Guerzoni
Project Manager | BESS Development | Driving 3+ GW of Energy Storage Projects in Italy
Hi guys,
Today I want to introduce a useful automation to change the ring mode of your smartphone based on your current position.
Use case
You arrived at the office. To avoid disturbing your colleagues, you want your smartphone's ringer mode is automatically set to vibrate mode.
Software configuration
Home Assistant code (yaml)
This is the piece of code you have to write down as automation:
alias: Smartphone - Set the vibrate mode if I'm at the office
description: Smartphone - Set the vibrate mode if I'm at the office for at least 30 seconds
trigger:
? - platform: state
? ? entity_id: person.A
? ? from: not_home
? ? to: Office
? ? for: "00:00:30"
condition: []
action:
? - service: notify.mobile_app_[yoursmartphone]
? ? data:
? ? ? message: command_ringer_mode
? ? ? title: vibrate
mode: single
Some specifics about the code above
I do hope you have enjoyed this article. I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below!
领英推荐
Thank you for reading.
--------------------------------------------------------------------------------------------------------
Other recent articles about Home Assistant: