Skip to content

String to float, Sensor Error. #23

@Niesel1974

Description

@Niesel1974

Hi, getting this error:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 666, in state
numerical_value = float(value) # type:ignore[arg-type]
ValueError: could not convert string to float: "{ states('sensor.e3dc_external_power') | float | abs }}"

Any idea how to fox this?

BR,

Linus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions