Alexa can make announcements using motion and contact sensors. With smarthings I used a virtual sensor and webcore to play announcements when my wife arrived home. When the front door opened (door contact) after she arrived (smartthings arrival sensor) the virtual sensor would open and play the announcement. It would then close to prevent further announcements if she happened to go outside without leaving the house.
What would be the best method of doing this in Home Assistant? I am currently tracking her presence with the unfi platform.
Any headway here? Hi @ReneTode I’ve seen your suggestions on using the sh script to control Alexa. Curious if you or @mikecoscia have used contact sensors in HA exposed to Alexa? I have this other thread going. It actually stems from this OP post since but mine was an actual z wave sensor that when opened or closed it would invoke a routine. However what was neat is that Alexa could directly read the state of the contact sensor so it was all native to Alexa.
I use Haaska to expose HA devices to Alexa. You can also use Nabu Casa instead of Haaska. Not all device types/sensors are supported by Alexa, in which case I use input booleans which are supported by Alexa, and then use automations to drive the state of the input boolean.
Once exposed to Alexa, you can use Alexa Routines.
i try to avoid things that are native to alexa.
my home automation completely runs through HA, so i dont want anything automated outside it.
i still use the sh script (to start things on alexa or use TTS), combined with emulated hue (als with a virtual light, so alexa can give commands, when i say something to her).
so there are 2 ways i use it:
i say something to alexa, HA (or actually appdaemon) notices that and acts upon that and sends TTS to alexa
something happens in my home (motion for example), HA detects that and the i send TTS to alexa.