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

solar-entity shows no state after an mistake by myself #136

Open
3 tasks
jove01 opened this issue Jul 31, 2024 · 1 comment
Open
3 tasks

solar-entity shows no state after an mistake by myself #136

jove01 opened this issue Jul 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jove01
Copy link

jove01 commented Jul 31, 2024

Describe the bug
I had defined a template sensor and put it in solar-entity. There I saw, that I have done a mistake. So I deleted the sensor an defined a new one with the same name.

Than I deleted the old entry in solar-entity and saw there is no state. After that I saw the old and the new sensor in statistics. There I deleted als the old one and restarted HA.

But after that in solar-entity is no value. In all other cards after that created for testing with this sensor I see a value.

So I think somewhere ist the old UUID (o.ä) intern saved.

The errors occurs in different browsers an the android-version.

All Updates are the newest.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Please make sure all of this applies and check the checkboxes, by writing "X" inside of them.

  • I understand that this is a channel for reporting bugs, not a support forum (If you need help configuring the card, go to: Discussions).

  • I have the latest version of the card installed.

  • I have cleared my browser cache after installing, updating and configuring the card.

@jove01 jove01 added the bug Something isn't working label Jul 31, 2024
@jove01
Copy link
Author

jove01 commented Jul 31, 2024

Maybe I found the reason:
It is not possible to use 2 solar-entity. So I defined 1 and added my to solar-entities

`    - name: "Daily PV-Ertrag"
      unique_id: daily_pv_ertrag
      device_class: energy
      state_class: measurement
      unit_of_measurement: kWh
      state: >-
        {% if states('sensor.daily_pv_generation') == 'unavailable' or
          states('sensor.tp_stecker_pv_heutiger_verbrauch') == 'unavailable'
          %}
          {{ states('sensor.daily_pv_ertrag') }}
        {% else %}
        {{ 
        states('sensor.daily_pv_generation')| float(0) + 
        states('sensor.tp_stecker_pv_heutiger_verbrauch')| float(0)
        }}
        {% endif %}`

I think the state_class "measurement" is not allowed!

But what is the way to define 1 solar-sensor as "sum" of 2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant