Voice Preview I think I have messed it up

I installed my Home Assistant Voice-PE and also added it to ESPHome. I then found this was not recommended and tried to re-install it again. After a lot of effort I finally got it reinstalled. It recognises the wake work and the light cycles, but I get no voice response, but the debug does seem to recognise the command, but it does not run. If I type the command it works. At the moment I am trying to trigger these scripts.

Any idea what I might be missing? I am using Home Assistant Cloud.

I am working on an issue with Voice PE at the moment, but mine is local rather than HA Cloud.

One suggestion from looking into this though is to make sure that the Name and Labels are filled in for the device you want to control.

HAUI>>settings>>network

Make sure both HA and HAVPE can access the “local network” that is defined there.

If not you will get:

Wake word recognized: OK
Action performed: OK maybe
Voice responses: NG

You must verify Both can reach IP because HA may not be able to talk to itself on LAN depending on your install.

Thanks for the pointers, but I am not sure how to check the local network connection. In the settings, I am using a https URL.

ESPHome see the VoicePE

Should I take control of it? At one point the voice response did work, but that was before I joined Home Assistant Cloud and it would not understand what I was saying. Ideally I would start again to make sure it was all correct, but not sure how to do that either.

delete device from esphome integration in HA.
Factory reset voice PE

there have been a lot of complaint recently so either they made change or a lot of people recently start adding Voice PE. I’ve had mine 2 months. I use for 1 week then stop. Recently I remove all alexa in home and when I go to use Voice PE it not working becuase I made several network changes. Setting them up again was a task but easy once I understood causes.

I do know that Voice PE and HA use the “local network” defined in the HA ui at HAUI >> Settings >> network. My issue was caused by HA unable to communicate with itself at the defined address.

If you can ssh into HA, you only need to ping “local network” address to verify HA can access.
For the voice PE, you can join the same wifi network it will connect to on any PC and check that you can connect to HA server.
If both of above are true you should be OK network wise.

I tried setting connection for my https://extenaldomain and voice PE was OK but HA failed. I would expect that to work but also know there are many proxy settings and firewall settings that could greatly impact this. I would avoid those problems in initial setup

I removed the Voice PE and did a full reboot of the system, not just Home Assistant. I confirmed that ESP Home no longer saw the PE.

I have now re-added it. Should I take control of the device. I have the green screenshot above. The phone took a long time checking for updates, but Home Assistant sees it needs 25.4.0 from 25.3.4. In fact, I updated it via web page and the phone the reflected it was updating.

I haven’t had a chance to test it yet, but it has been re-added and up to date.

No. You only take control if you want custom code. Using default is simpler

1 Like

I still have the same issue. Now to investigate some more. If I click on Set Up Voice Assistant under the PE on the phone I get this.

Home Assistant can light the LED Ring and Mute the PE. I assume the issue is, the PE can’t talk to Home Assistant. I tried to change the URL to http, but it says I have https turned on so can’t use that.

Some further investigation. I noticed this which is what I think you were talking about before.

I switched it from Home Assistant Cloud back to local. Still no voice response, but after switching it back Home Assistant Cloud I now get this, but with no response.

I am wondering if I am hitting this issue.

HA ui >> setting >> system >> network >> local network

Both HA and Voice PE needs to be able to contact that address.

Regarding the first screenshot
Do you have look Speech to Text provider setup? Rhaspy or I think faster-whisper is other option.

Cloud works but your HA voice probably can’t reach HA at “local network” address
Local has STT fail and probably also “local network” issue

I agree, but I am not sure how I can change the local address without turning off https. I could of course do that, but I shouldn’t have to.

The STT screenshot came from the same debug screen. That issue seems to have gone away. The last screen shot is from the same debug screen. This is my configuration.

Is removing https required?

When Voice PE first released I connected to HA locally using self signed https

I change my network recently and at same time reset all Voice PE and reconnected so I can’t verify self signed https will work now. I do connect using https but it is verified cert so not sure if that matter.

According to the bug on GitHub if you use Home Assistant Cloud the PE tries to use that external URL, not the local one. I switched it from Home Assistant Cloud to local and I could set a timer, but no voice response. I certainly had voice response once, but I don’t use it that often so not sure when it stopped. It could certainly have been after I subscribed to HA Cloud. I only did this a month ago.

I don’t have much time to fiddle at the moment, but will keep looking at it.

Out of interest, I assume the action should fire even if there is no voice response? If I ask for a light to be turned it will work?

Yes

Action will work independent of voice

I asked it to turn on some light cabinets, but was not successful. I then made an alias for the cabinets and that worked. I then asked it to off the cabinets as a pair and it couldn’t, but it spoke to me. The next command worked, but then no voice again. So it can speak if it wants to :grinning:

maybe its shy. Talk to it more. Help it build confidence

I think these may be using mdns for reply. I have issue where my Voice PE and Box3s work without issue but my atom echos do not respond with voice.

Can you access the devices logs in esphome? not sure how to do this if you didnt “take control”.
monitor the logs while giving command. This will tell you a little more about failure point.

what happens if you temporarily set the “local network” to your “external network”? does voice function?

It looks like I can’t see the logs without taking control. I just changed the voice to British English from US English and it spoke to me for 2-3 commands then stopped again. I am wary to fiddle too much as it seems it can work, it is just not stable

If you take control, you can restore back very easily

Really I prefer it

You could look to GitHub for better assistance or information

It did it again this morning. Replied to 3-4 commands and then stopped. It is very strange.