diff --git a/homeassistant/components/alexa_devices/event.py b/homeassistant/components/alexa_devices/event.py index bc343f2d29d4..e31f87cd8ec7 100644 --- a/homeassistant/components/alexa_devices/event.py +++ b/homeassistant/components/alexa_devices/event.py @@ -96,6 +96,8 @@ class AlexaVoiceEvent(AmazonEntity, EventEntity): "intent": vocal_record.intent, "voice_command": vocal_record.title, "voice_reply": vocal_record.sub_title, + "person_first_name": vocal_record.person_first_name, + "person_type": vocal_record.person_type, }, ) self.async_write_ha_state() diff --git a/tests/components/alexa_devices/const.py b/tests/components/alexa_devices/const.py index 9bd339bc9a69..a6e7b639bb64 100644 --- a/tests/components/alexa_devices/const.py +++ b/tests/components/alexa_devices/const.py @@ -127,6 +127,8 @@ TEST_VOCAL_RECORD_INITIAL = AmazonVocalRecord( intent="PlayMusicIntent", title="Play some music", sub_title="Echo Test", + person_first_name="John", + person_type="CHILD", ) TEST_VOCAL_RECORD_EVENT = AmazonVocalRecord( @@ -135,4 +137,6 @@ TEST_VOCAL_RECORD_EVENT = AmazonVocalRecord( intent="PlayMusicIntent", title="Play some music", sub_title="Echo Test", + person_first_name="Jane", + person_type="ADULT", ) diff --git a/tests/components/alexa_devices/snapshots/test_event.ambr b/tests/components/alexa_devices/snapshots/test_event.ambr index 03ef39503774..05228361112e 100644 --- a/tests/components/alexa_devices/snapshots/test_event.ambr +++ b/tests/components/alexa_devices/snapshots/test_event.ambr @@ -65,6 +65,8 @@ ]), : 'Echo Test Voice event', 'intent': 'PlayMusicIntent', + 'person_first_name': 'Jane', + 'person_type': 'ADULT', 'voice_command': 'Play some music', 'voice_reply': 'Echo Test', })