I recently had a need for my father-in-law to be able to push a button and get my wife and I's attention. I had all the hardware but just need to do a little work in HA to get it working well. If you want to be able to receive the alerts on your phone while you're off the local WIFI you will need to have your HA setup via a port forward in your router (and optionally a reverse proxy running on AWS so you don't have to switch between your local LAN IP and Router Public IP)
Functionality:
When dad presses the button I want:
- My phone to notify me.
- Wife's phone to notify her.
- A voice prompt to play on the Google nest hub smart speaker/display (to wake us from our sleeping slumber)
Hardware in place:
- Raspberry PI (raspi 3-64 1gig ram) running latest version of Home Assistant.
- GALOOK wireless USB Dongle, Universal Zigbee Gateway
- ThirdReality Zigbee Smart Button
- Google nest hub
- Cellphone that can run Home Assistant mobile app
Here is what the automation looks like. The reason for using all the different triggers for the same button is: his motor control in his hands varies a lot (so why not cover all situations). YAML below image:
- id: '1651820145253'
alias: Dad Help Button
description: ''
trigger:
- device_id: b75882a325a669bcbc005942637bdbd5
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
- device_id: b75882a325a669bcbc005942637bdbd5
domain: zha
platform: device
type: remote_button_long_press
subtype: remote_button_long_press
- device_id: b75882a325a669bcbc005942637bdbd5
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
condition: []
action:
- device_id: e9ed4e00be80a486717e3ae827b2c5e2
domain: mobile_app
type: notify
message: Dad Needs Help
title: Dad Needs Help
- device_id: 43b454b3aa01b3ba4ed5369704eca082
domain: mobile_app
type: notify
message: Dad Needs Help
title: Dad Needs Help
- service: media_player.play_media
target:
entity_id: media_player.nest
data:
media_content_id: media-source://tts/google_translate?message=Dad+has+requested+help.++Dad+has+requested+Help.&language=en-us
media_content_type: provider
metadata:
title: Dad has requested help. Dad has requested Help.
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
media_class: app
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: media-source://tts/google_translate?message=Dad+has+requested+help.++Dad+has+requested+Help.&language=en-us
mode: single