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

Fix for entity sensor.pv_outputpower state '' cannot be processed as a number #51

Closed
tuxick opened this issue Sep 5, 2021 · 1 comment

Comments

@tuxick
Copy link
Contributor

tuxick commented Sep 5, 2021

  - platform: template
    sensors:
      pv_outputpower:
        value_template: >-
          {% if states.sensor.inverter_myroof_power.attributes.outputpower is defined %}
            {{ states.sensor.inverter_myroof_power.attributes.outputpower }}
          {% else %}
            {{ 0 }}
          {% endif %}
@TimSoethout
Copy link
Owner

Since v3.x.x states.sensor.inverter_zolder.state should contain the wattage output that is always a number. ;)

Your workaround of course also works.

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

No branches or pull requests

2 participants