Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: could not convert string to float: 'Off' #112038

Closed
Chaoscontrol opened this issue Mar 2, 2024 · 4 comments
Closed

ValueError: could not convert string to float: 'Off' #112038

Chaoscontrol opened this issue Mar 2, 2024 · 4 comments

Comments

@Chaoscontrol
Copy link

The problem

I'm getting this error once every time soon after any HA reboot.

Logger: homeassistant
Source: components/google_assistant/trait.py:1079
First occurred: 10:34:44 (1 occurrences)
Last logged: 10:34:44

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/report_state.py", line 157, in initial_report
    entity_data = entity.query_serialize()
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 740, in query_serialize
    deep_update(attrs, trt.query_attributes())
                       ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/trait.py", line 1079, in query_attributes
    float(current_temp), unit, UnitOfTemperature.CELSIUS
    ^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'Off'

After searching I found this which seems very similar, but I can't figure out what integration is originating this in my case.

What version of Home Assistant Core has the issue?

core-2024.2.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Assistant

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_assistant/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Mar 2, 2024

Hey there @home-assistant/cloud, mind taking a look at this issue as it has been labeled with an integration (google_assistant) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of google_assistant can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign google_assistant Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_assistant documentation
google_assistant source
(message by IssueLinks)

@joostlek
Copy link
Member

joostlek commented Mar 2, 2024

Can you check in the Dev tools what entities have the state "Off"?

@Chaoscontrol
Copy link
Author

Well... there's tons of course...
https://paste.debian.net/1309230/

@elupus
Copy link
Contributor

elupus commented Mar 2, 2024

sensor.wiser_lts_target_temperature_main_bedroom
Wiser LTS Target Temperature Main bedroom
Off

A temp sensor cant ve off. So the integration providing that entity need to be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants