Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.26k stars 234 forks source link

Entity on Homepage will not clear on screen after removing it from the blueprint #2018

Closed fbbln closed 2 months ago

fbbln commented 2 months ago

TFT Version

4.3.1

ESPHome Version

2024.3.0

Blueprint Version

4.3.1

Panel Model

EU

What is the bug?

If an entity on the homepage was once filed it will not clear again.

Steps to Reproduce

Create a template sensor Helper: `{% if is_state('binary_sensor.isteinfensteroffen', 'on') %} {{ (now().timestamp() - as_timestamp(states.binary_sensor.isteinfensteroffen.last_changed) ) | timestamp_custom('%H:%M', False)}} {% else %}

{%endif %}`

Add this sensor as an entity to the homepage.

It shows either an empty String or the time the window is open. If the rsulting sensor is then added as an entity to the homepage the behaviour above happens. It correctly shows the time but if the windows are closed, the last time will not clear.

BTW, this works nicely with labels on the button pages. There I don’t even need the helpers…you can add the template directly as a label.

Your Panel's YAML

All default.

ESPHome Logs

No response

Home Assistant Logs

No response

edwardtfn commented 2 months ago
fbbln commented 2 months ago

Same as in the other ticket: a reboot will correct the shown text but if used dynamically that's not a solution ;-)

edwardtfn commented 2 months ago

Solved in dev and will be included in the next release.