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

4.5.0 not showing actual binary_sensor value anymore but on|off instead #307

Open
bcutter opened this issue Jun 3, 2023 · 5 comments
Open

Comments

@bcutter
Copy link

bcutter commented Jun 3, 2023

Entity:
grafik

grafik

YAML:

      - type: custom:multiple-entity-row
        entity: update.deconz_update
        name: deCONZ
        toggle: false
        state_color: true
        show_state: false
        secondary_info: null
        style: |
          :host .entities-row {
            justify-content: flex-start;
            align-items: unset;
          }
          :host .entities-row div.entity:nth-child(1)  {
            {% if states('sensor.deconz_cpu_percent') | float(0) > 5 %}
              color: orange;
            {% endif %}
            {% if is_state('sensor.deconz_cpu_percent','unavailable') %}
              color: red;
            {% endif %}
          }
          :host .entities-row div.entity:nth-child(2)  {
            {% if states('sensor.deconz_memory_percent') | float(0) > 5 %}
              color: orange;
            {% endif %}
            {% if is_state('sensor.deconz_memory_percent','unavailable') %}
              color: red;
            {% endif %}
          }
          :host .entities-row div.entity:nth-child(3)  {
            {% if states('binary_sensor.deconz_running') == "on" %}
              color: green;
            {% endif %}
            {% if states('binary_sensor.deconz_running') == "off" %}
              color: red;
            {% endif %}
          }
        entities:
          - entity: sensor.deconz_cpu_percent
            name: CPU
          - entity: sensor.deconz_memory_percent
            name: RAM
          - entity: binary_sensor.deconz_running
            name: Status
        state_header: ''
        column: false

4.4.1 ✔:
grafik

4.5.0 ❌:
grafik


What's the issue here?

  • Do I need to change something?
  • Or is it a newly introduced bug in 4.5.0?

And I could not find anything related to this small note in the release description:
grafik

Sounds a bit like a "I did not test it with an older version" excuse :-)

@nilsreiter
Copy link

nilsreiter commented Jun 24, 2023

I think it‘s the same issue as in #292, which was thought of as fixed, but isn‘t. I‘m seeing the same thing as @bcutter.

@bcutter
Copy link
Author

bcutter commented Jun 24, 2023

So how to make any progress here? @benct

I prefer to not escape to a forked version like people in the other issue 😃

@nilsreiter
Copy link

Actually, my problem went away after emptying the cache. Did you do that @bcutter?

@bcutter
Copy link
Author

bcutter commented Jun 24, 2023

Yes of course. Multiple times on various devices/browsers/apps.

The bug is in this piece of software.

And there's still not a single word (explanation) on this:

image

So I bet you're on HA Core >= 2023.4.x where frontend cache deletion seems to fix this. If people are not, it doesn't. Current theory.

@bcutter
Copy link
Author

bcutter commented Nov 7, 2023

After updating HA Core to 2023.4.x and updating multiple-entity-row again to 4.5.0, the status shown was fixed. So to sum up:

  • HA Core < 2023.4 + multiple-entity-row < 4.5.0: ✅
  • HA Core >= 2023.4 + multiple-entity-row < 4.5.0: ❌
  • HA Core < 2023.4 + multiple-entity-row >= 4.5.0: ❌
  • HA Core > 2023.4 + multiple-entity-row >= 4.5.0: ✅

So it's definitely not a "might require". You should also use the dependency function in HACS so the 4.5.0 update would not be offered to installations nut fulfilling the requirements (HA Core 2023.4.x).

So: it's fixed for me but I would really like to see a statement of @benct here. Hopefully such situations will therefore be avoided in future.

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