denysdovhan / vacuum-card

Vacuum cleaner card for Home Assistant Lovelace UI
https://denysdovhan.com/smart-home
MIT License
903 stars 529 forks source link

value_template not working on Chrome #685

Open tiwek opened 7 months ago

tiwek commented 7 months ago

[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:

Chrome browser show value 244529

image

Firefox, Android show correct value: 68

image

Teezy80 commented 6 months ago

I have same problem with any web browser.

rustyk123 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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.

github-actions[bot] commented 4 months ago

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!

tiwek commented 4 months ago

Still not working properly.

image

On android mobile is ok.

github-actions[bot] commented 1 month ago

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!

andrein commented 1 month ago

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

wepster commented 2 weeks ago

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.