Home Assistant Events¶
Kiosk Satellite fires an event on the Home Assistant bus whenever a voice turn, a timer, the person talking, the person at the kiosk, an intercom call, an alarm, a notification card, the screensaver or the screen changes. Automations can trigger on them with an event trigger. They go out over the ESPHome connection, so turn on Settings > ESPHome and add the kiosk to Home Assistant first. Expose kiosk entities is not needed.
Home Assistant only fires device events under esphome., hence the prefix. Every event carries event_type with what happened. Home Assistant adds device_id, the kiosk's ESPHome device. Use device_id to react to one kiosk only. You can find it in the URL of the kiosk's device page.
| Event | What it follows |
|---|---|
esphome.kiosk_satellite_voice |
Voice Satellite interactions |
esphome.kiosk_satellite_timer |
Voice Satellite timers |
esphome.kiosk_satellite_speaker |
Who is talking, with Voice Match |
esphome.kiosk_satellite_face |
Who arrives at and leaves the kiosk, with Face Recognition |
esphome.kiosk_satellite_intercom |
Intercom calls and announcements |
esphome.kiosk_satellite_alarm |
Alarms |
esphome.kiosk_satellite_notification |
Notification cards leaving the screen |
esphome.kiosk_satellite_screensaver |
The screensaver |
esphome.kiosk_satellite_screen |
The screen turning on and off |
To watch them arrive, open Developer tools > Events in Home Assistant and listen for one of the names above.
Apps on the kiosk itself, like Tasker or MacroDroid, get the same changes as Android Broadcasts.
Voice Satellite¶
event_type: esphome.kiosk_satellite_voice
data:
device_id: 5f1c...
event_type: started
reason: voice
slot: 2
wake_word: Hey Jarvis
event_type |
When |
|---|---|
started |
A voice interaction begins: a turn, an announcement, a vs_show prompt, a realtime conversation or a ringing timer. reason says which: voice, announcement, show, conversation or timer. A turn, a realtime conversation and a vs_show also carry slot, the Assistant that answers (1 or 2), and wake_word, the wake word that started it. wake_word is empty when no wake word did, as for a vs_show. vs_wake reports the wake word of the slot it starts. |
listening |
The microphone opens for a command. |
thinking |
The command is in and the assistant is working on it. |
speaking |
The answer starts playing. |
announcement |
An announcement starts playing. |
ended |
The interaction is over. Audio focus is released and the overlay is gone. |
ended fires once per interaction. A follow-up question, an announcement that asks for a reply and a new wake word while the answer is still on screen all stay inside the same interaction. When Keep the answer on screen or Keep results on screen leaves the answer up, ended waits for it to go.
These come from the built-in Voice Satellite. The Voice Satellite integration running in a dashboard does not send them.
# Lower the living room speaker while the kitchen kiosk listens.
triggers:
- trigger: event
event_type: esphome.kiosk_satellite_voice
event_data:
event_type: started
device_id: 5f1c...
actions:
- action: media_player.volume_set
target:
entity_id: media_player.living_room
data:
volume_level: 0.1
Speaker¶
With Voice Match on, the kiosk fires this event each time Ground Control places the voice of the person talking, about a second into a command. A realtime conversation fires it again on each turn.
event_type: esphome.kiosk_satellite_speaker
data:
device_id: 5f1c...
event_type: recognized
name: Ana
person: person.ana
score: 0.71
by: voice
| Field | What it holds |
|---|---|
event_type |
recognized for an enrolled person, unknown for a voice nobody enrolled. |
name |
The person's name in Ground Control. Empty for unknown. |
person |
The Home Assistant person set for them on Ground Control's People page, or empty. |
score |
How close the voice was to theirs, from 0 to 1. Empty when the only person enrolled was taken without a check. |
by |
voice from their speech, wake_word from the wake word, conversation on a follow-up when an earlier turn of the conversation recognized them or only_person when only one person is enrolled. Empty for unknown. |
# Turn on the reading light in the kids' room when Leo talks to its kiosk.
triggers:
- trigger: event
event_type: esphome.kiosk_satellite_speaker
event_data:
event_type: recognized
person: person.leo
device_id: 5f1c...
actions:
- action: light.turn_on
target:
entity_id: light.kids_reading_light
Face¶
With Face Recognition on, the kiosk fires this event when someone recognized arrives at the kiosk or leaves it, and when the PIN is skipped or Lockdown Mode is turned off because they were recognized. An arrival fires once. It fires again for the same person only after they have been out of view for a minute, which is also when left fires. Nothing fires when a face turns away for a moment or a second person walks past. The event fires whether or not the recognition cards show.
event_type: esphome.kiosk_satellite_face
data:
device_id: 5f1c...
event_type: arrived
name: Ana
person: person.ana
event_type |
When |
|---|---|
arrived |
Someone recognized became the person at the kiosk after being out of view for at least a minute. When several people are in view, it fires for the person with the highest score and for the others as each one becomes the person at the kiosk. |
left |
Someone who arrived has been out of view for a minute. |
pin_skipped |
The kiosk PIN was skipped for them after the exit gesture. mode is kiosk for the Kiosk Mode exit gesture and lockdown for Lockdown Mode's. |
lockdown_off |
Lockdown Mode was turned off because they were recognized at the kiosk. |
| Field | What it holds |
|---|---|
name |
The person's name in Ground Control. |
person |
The Home Assistant person set for them on Ground Control's People page, or empty. |
# Turn on the kitchen lights when Ana walks up to the kitchen kiosk.
triggers:
- trigger: event
event_type: esphome.kiosk_satellite_face
event_data:
event_type: arrived
person: person.ana
device_id: 5f1c...
actions:
- action: light.turn_on
target:
entity_id: light.kitchen
A photo of an enrolled person can be recognized as them. Don't use this event to unlock doors or disarm an alarm. See Face Recognition Is Not Security.
Timers¶
esphome.kiosk_satellite_timer fires when a timer starts, changes, is cancelled, finishes or its alert is dismissed. It carries timer_id, name, total_seconds, seconds_left and is_active. See Timer events for the fields and an example.
Intercom¶
event_type: esphome.kiosk_satellite_intercom
data:
device_id: 5f1c...
event_type: ringing
kiosk: Kitchen
event_type |
When |
|---|---|
calling |
This kiosk is calling another one. |
ringing |
Another kiosk is calling this one. |
in_call |
The call connected. |
broadcasting |
This kiosk is announcing to all kiosks. |
listening |
Another kiosk's announcement is playing here. |
missed |
A call rang out with no answer. |
ended |
The call, announcement or ring is over. |
kiosk is the other kiosk's name, empty when there is none. ended fires once at the end of each call, announcement or ring, missed calls included.
Alarms¶
esphome.kiosk_satellite_alarm fires once per alarm whenever it is created, changed, deleted, starts its sunrise, rings, is snoozed, stopped or silenced. It carries alarm_id, label, time, days and enabled. See Alarm events for the fields and an example.
Notifications¶
event_type: esphome.kiosk_satellite_notification
data:
device_id: 5f1c...
event_type: tapped
notification_id: 7
title: Mailbox
message: Mail is here
type: info
event_type |
When |
|---|---|
tapped |
Someone tapped the card on the kiosk. |
expired |
The card's duration ran out. |
dismissed |
The notification_dismiss action, the Notifications dismiss all button or the remote API took it down. |
replaced |
A fifth card pushed it off the screen. |
notification_id is the id the notification action returned. title, message and type are the card's own. title is empty when the card had none. Clearing the screen sends one event per card.
# Show the mail card again if someone taps it away while the mail is still there.
triggers:
- trigger: event
event_type: esphome.kiosk_satellite_notification
event_data:
device_id: 5f1c...
event_type: tapped
message: Mail is here
conditions:
- condition: state
entity_id: binary_sensor.mailbox
state: "on"
actions:
- action: esphome.kitchen_tablet_notification
data:
message: Mail is here
title: Mailbox
duration: 0
type: info
chime: false
scale: 1
icon: mdi:mailbox
chime_file: ""
volume: 0
image: ""
Screensaver¶
event_type |
When |
|---|---|
started |
The screensaver started. |
stopped |
The screensaver ended. |
Screen¶
event_type: esphome.kiosk_satellite_screen
data:
device_id: 5f1c...
event_type: "off"
source: system
event_type |
When |
|---|---|
on |
The screen turned on. |
off |
The screen turned off. |
source says who moved it:
app: Kiosk Satellite did. That covers the screensaver turning the screen off, a wake on motion, a face or the wake word and the Screen light in Home Assistant.system: Android did, for example the power button, double tap to wake or the display timeout. Android does not say which. With Keep screen on turned on the display timeout never fires, sosystemturning the screen off is almost always the power button.
Quote "on" and "off" in YAML. Unquoted, Home Assistant reads them as true and false and the trigger never matches.
# Keep the kitchen kiosk dark after a power button press: stop motion and
# face detection from waking it until the power button turns it back on.
triggers:
- trigger: event
id: "off"
event_type: esphome.kiosk_satellite_screen
event_data:
device_id: 5f1c...
event_type: "off"
source: system
- trigger: event
id: "on"
event_type: esphome.kiosk_satellite_screen
event_data:
device_id: 5f1c...
event_type: "on"
source: system
actions:
- choose:
- conditions:
- condition: trigger
id: "off"
sequence:
- action: switch.turn_off
target:
entity_id:
- switch.kitchen_tablet_screensaver_motion_detection
- switch.kitchen_tablet_screensaver_face_detection
default:
- action: switch.turn_on
target:
entity_id:
- switch.kitchen_tablet_screensaver_motion_detection
- switch.kitchen_tablet_screensaver_face_detection
If you turn the screen back on any other way, such as with the Screen light, detection stays off until the next power button press.