GithubHelp home page GithubHelp logo

Comments (10)

tronikos avatar tronikos commented on May 29, 2024

What do you get at https://myactivity.google.com/myactivity when you issue the command?

from google_assistant_sdk_custom.

stevelup avatar stevelup commented on May 29, 2024

Hi

I have the same scenario - I get prompted to set up Voice Match, but it's already set up, so there's nothing further I can do.

Here's the output from My Activity.

Said [is my car charging]
For that, I'll need to verify your identity through voice match.
To set it up, follow the steps I've sent to your phone.
Our last update from Polestar was 2 hr ago. At that point your vehicle was plugged in but not charging.

Weirdly, the answer is actually there, but doesn't make it back to Home Assistant.

Here's the debug output from HASS:-

Logger: homeassistant.components.automation.query_polestar_soc
Source: components/google_assistant_sdk/helpers2.py:15
Integration: Automation (documentation, issues)
First occurred: 18:00:22 (6 occurrences)
Last logged: 18:05:51

Query Polestar SoC: Choose at step 1: choice 1: Error executing script. Unexpected error for call_service at pos 1: object of type 'NoneType' has no len()
Query Polestar SoC: Error executing script. Unexpected error for choose at pos 1: object of type 'NoneType' has no len()
While executing automation automation.query_polestar_soc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1808, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/components/google_assistant_sdk/__init__.py", line 117, in send_text_command
    await async_send_text_commands(hass, commands, media_players)
  File "/usr/src/homeassistant/homeassistant/components/google_assistant_sdk/helpers.py", line 74, in async_send_text_commands
    text_response = parse_response(hass, command, resp)
  File "/usr/src/homeassistant/homeassistant/components/google_assistant_sdk/helpers2.py", line 15, in parse_response
    html = BeautifulSoup(resp[1], "html.parser")
  File "/usr/local/lib/python3.10/site-packages/bs4/__init__.py", line 313, in __init__
    elif len(markup) <= 256 and (
TypeError: object of type 'NoneType' has no len()

from google_assistant_sdk_custom.

Rebem13 avatar Rebem13 commented on May 29, 2024

What do you get at https://myactivity.google.com/myactivity when you issue the command?

Same error as @stevelup in my activity log.

from google_assistant_sdk_custom.

tronikos avatar tronikos commented on May 29, 2024

Maybe it would work if you enable personal results? You would have to manually apply changes in home-assistant/core#88871 and follow instructions in home-assistant/home-assistant.io#26390

It might be easier to experiment with the underlying library at https://github.com/tronikos/gassist_text by running the included demo.py

from google_assistant_sdk_custom.

tronikos avatar tronikos commented on May 29, 2024

The latest release v0.0.6, which requires 2023.7, enables personal results. Can you try the command again?

from google_assistant_sdk_custom.

stevelup avatar stevelup commented on May 29, 2024

Hi

I'm struggling to get personal results working. Home Assistant is on 2023.7.1 and your custom integration has been reinstalled - v0.0.6 - but I'm still getting the same thing.

For that, I'll need to verify your identity through voice match.
To set it up, follow the steps I've sent to your phone.

I can't actually find the debug logging for the integration any more either - not sure what I'm doing wrong...

from google_assistant_sdk_custom.

tronikos avatar tronikos commented on May 29, 2024

Does "what is my name?" work? If it does and you still get the same error then enabling personal results won't help for car queries.

from google_assistant_sdk_custom.

stevelup avatar stevelup commented on May 29, 2024

Yes, sorry I wasn't clear. That is the response to 'what is my name'.

I'll spend some more time on it tomorrow.

from google_assistant_sdk_custom.

joskfg avatar joskfg commented on May 29, 2024

The notification in the mobile doesn't open any applicaiton, it just show a quick black screen and nothing more. Using a OnePlus 9 pro.

from google_assistant_sdk_custom.

tronikos avatar tronikos commented on May 29, 2024

Added a note in the underlying library "Commands that need to verify your identity through voice match don't work"

from google_assistant_sdk_custom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.