#Exposing timers created in VPE?

1 messages · Page 1 of 1 (latest)

solid adder
#

Please accept my apologies if this is covered somewhere, but I’m struggling to find the latest situation. I've got three Voice Assistant PEs and I'm pretty happy with the setup so far. (whisper, piper and three conversation agents - llama3.2, OpenAI and Home Assistant). One of the biggest stumbling blocks has been the timers. Saying "OK Nabu, Set a timer called test for 10 minuets" works great. However, what I feel I'm really missing is the ability to detect, interrogate or modify these timers. My intention is to visualise them on the wall panel in the same room that they were set so they could be set, cancelled, or updated if voice wasn't an easy option (i.e screaming toddler, reluctant voice user, stressed situation, etc).

Is there anyway to interact with the ESPHome firmware on the VPE to get at these timers? MQTT events, polling an API endpoint etc? I'm open to running forked/beta firmware or even building bridge middleware of some kind if it would help.

solid adder
#

So a bit more poking about I'm theorising that I should be able to update the firmware on the VPE to push events to HA with something like this.
voice_assistant: id: va-example-1 on_timer_started: then: - homeassistant.event: event: esphome.voice_timer_started data: name: !lambda 'return name;' duration: !lambda 'return duration.to_string();'

royal goblet
#

Yeah, there's no way to get those timers as entities in ESPHome, but you can use events.
I'm doing something similar with alarm in Koala satellite. Probably i'll add timers as well... 🙂

rotund needle
#

I beleive that long term that the plan is to be able to have them in HA by default but there isnt currently a "good" way of doing it so its waiting for when it can be done properly

cyan tartan
#

Better than nothing