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

blade running time misrepresented #341

Open
Cosmicbase opened this issue Apr 22, 2024 · 3 comments
Open

blade running time misrepresented #341

Cosmicbase opened this issue Apr 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Cosmicbase
Copy link

Cosmicbase commented Apr 22, 2024

Describe the bug

Blade runtime is displayed incorrectly instead of factor 1 is divided by 1000 in the YAML

Steps to change and solve the problem

Change divided 1000 to factor 1

Versions:

  • Release: 1.1.0
  • HomeAssistant version: 2024.4.3
  • Landroid_cloud integration 4.0.2

IMG_1075
IMG_1074

@Cosmicbase Cosmicbase added the bug Something isn't working label Apr 22, 2024
@Cosmicbase Cosmicbase changed the title Wrong blade running time misrepresented blade running time misrepresented Apr 22, 2024
@Barma-lej
Copy link
Owner

I use:

    - entity_id: sensor.mower_blades_total_on_time
      subtitle: Total blade time
      value_template: '{{ as_timedelta((value | float(0) * 3600) | string) }}'
    - entity_id: sensor.mower_blades_current_on_time
      subtitle: Current blade time
      value_template: '{{ as_timedelta((value | float(0) * 3600) | string) }}'
    - entity_id: sensor.mower_total_worktime
      subtitle: Work time
      value_template: '{{ as_timedelta((value | float(0) * 3600) | string ) }}'
    - entity_id: sensor.mower_distance_driven
      value_template: '{{ (value | float(0) / 1000) | round(3) }}'
      unit: km
      subtitle: Distance

@Cosmicbase
Copy link
Author

Cosmicbase commented Apr 23, 2024

value_template: '{{ as_timedelta((value | float(0) * 3600) | string) }}'
- entity_id: sensor.mower_blades_current_on_time
subtitle: Current blade time

Multiplier 3600 is too much. I get the wrong value. If I only use 1, i.e. don't multiply, the result is perfect.

For the other calculations I used /1000 instead of * 3600. All values ​​match the app.

IMG_1082
IMG_1081

@Barma-lej
Copy link
Owner

Barma-lej commented Apr 23, 2024

Try it. It's cool. Just try )

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

2 participants