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

value_template not working on Chrome #685

Open
tiwek opened this issue Jan 23, 2024 · 14 comments
Open

value_template not working on Chrome #685

tiwek opened this issue Jan 23, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@tiwek
Copy link

tiwek commented Jan 23, 2024

[X] I updated to the latest version available
[X] I cleared the cache of my browser

on the vacuum-card in the stats -> default section i try to display time in hours instead seconds:

  • entity_id: sensor.roborock_vacuum_a38_filter_left
    value_template: '{{ ( value | int * 0.000277778 ) | round }}'
    unit: h
    subtitle: Filtr

Chrome browser show value 244529

image

Firefox, Android show correct value: 68

image

  • Release: [ 2.8.0]
  • Browser: [chrome 120.0.6099.71]
  • HomeAssistant version: [2024.1.5]
@tiwek tiwek added the bug Something isn't working label Jan 23, 2024
@Teezy80
Copy link

Teezy80 commented Feb 14, 2024

I have same problem with any web browser.

@rustyk123
Copy link

I too have this issue in firefox and companion app on iphone and ipad. however if the value template is used with attribute it works fine, if it is a entity id specifically a sensor with a number value, then it defaults to the value of the entity, and any template for converting the seconds to hours or even minutes will not change that value.

@tiwek
Copy link
Author

tiwek commented Feb 20, 2024

I too have this issue in firefox and companion app on iphone and ipad. however if the value template is used with attribute it works fine, if it is a entity id specifically a sensor with a number value, then it defaults to the value of the entity, and any template for converting the seconds to hours or even minutes will not change that value.

Yes, but attribute is in seconds :(

@rustyk123
Copy link

I too have this issue in firefox and companion app on iphone and ipad. however if the value template is used with attribute it works fine, if it is a entity id specifically a sensor with a number value, then it defaults to the value of the entity, and any template for converting the seconds to hours or even minutes will not change that value.

Yes, but attribute is in seconds :(

correct, so is my sensor, my vacuum does not put my filter and brush life timer in an attribute, but in a sensor, my run time is in a attribute, I can use the value template on the run time (attribute) to convert seconds to hours, but my filter and brush life timer I can not use the exact same value template as they are sensors. but I can take the logic from the value template and put it in a template sensor and it will calculate the hours from seconds and then I can use that template sensor value in the vacuum card, however I don't want a bunch of template sensors created to fix a problem that should be fixed in the add in.

Copy link

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue.
Thank you for your contributions!

@github-actions github-actions bot added stale and removed stale labels Apr 24, 2024
@tiwek
Copy link
Author

tiwek commented Apr 25, 2024

Still not working properly.

image

On android mobile is ok.

Copy link

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Jul 16, 2024
@andrein
Copy link

andrein commented Jul 16, 2024

This is still an issue with the latest chrome. HA iOS app displays the values correctly.

@github-actions github-actions bot removed the stale label Jul 16, 2024
@wepster
Copy link

wepster commented Aug 19, 2024

I'm having similar problem on androit tablet with Fully Kiosk Browser.
On first enter of the dashboard value_template is applied correctly, after some time it becomes large number of seconds :)
This issue is not stale, it needs to be addressed.

Copy link

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Oct 18, 2024
@blob810
Copy link

blob810 commented Nov 5, 2024

I have the same issue on Safari and Mac OS Companion App.

@github-actions github-actions bot removed the stale label Nov 5, 2024
@VMsanity
Copy link

Still not working correctly.. Adding to keep from going stale again

@zagi988
Copy link

zagi988 commented Dec 9, 2024

Not only that but when you use value_template it doesn't update the value on screen when the value updates. You need to refresh the page for it to update.

@goooseman
Copy link

I also face the same issue with template being applied on the initial render, but being broken after state being updated. I believe the bug is in this repo: https://github.com/denysdovhan/ha-template

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

9 participants