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 · 6 comments
Open

value_template not working on Chrome #685

tiwek opened this issue Jan 23, 2024 · 6 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.

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

3 participants