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

The Time Sensors show the seconds #548

Closed
scannifn opened this issue May 18, 2023 · 4 comments
Closed

The Time Sensors show the seconds #548

scannifn opened this issue May 18, 2023 · 4 comments

Comments

@scannifn
Copy link

I have successfully integrated my LG washer/dryer model LSWD100E.
The only "issue" I'm having is that the time sensors also show seconds (they are not necessary, they are always set as 00).
Is there any way to display only hours and minutes? H:MM

The README.md specifies that the timers are in the format H:MM. Why do I have them in H:MM:SS format?

image

I know that this issue is not "tragic" but please could you help me to fix it in order to save space in the Lovelace mobile card view?
Thank you

Screenshots

image

image

@ollo69
Copy link
Owner

ollo69 commented May 18, 2023

I agree with you that second are useless, but seconds was added to have the timer format compatible with HA format as discussed in Issue #257.
To not have seconds displayed in the UI, you just need to work with entities card formatting or may be using for some front-end custom control that can manage this.

@scannifn
Copy link
Author

First of all thanks for the reply.
Not being very experienced, I didn't find your answer very understandable (for me).
Would you be kind enough to help me figure out if my current card can be changed based on your advice?

type: custom:mushroom-template-card
primary: Lavasciuga LG
secondary: >
  {% if is_state("sensor.lavatrice", "on") %}

  Programma: {{ state_attr("sensor.lavatrice", "current_course") }}

  Stato: {{ state_attr("sensor.lavatrice", "run_state") }}

  {{ state_attr("sensor.lavatrice", "initial_time") }} Durata - {{
  state_attr("sensor.lavatrice", "remain_time") }} Tempo rimanente

  {% else %}

  Off

  {% endif %}
icon: mdi:washing-machine
entity: sensor.lavatrice
multiline_secondary: true
icon_color: '{{ "green" if is_state("sensor.lavatrice", "on") else "" }}'
tap_action:
  action: more-info

@ollo69
Copy link
Owner

ollo69 commented May 20, 2023

I'm not so expert in UI, I suggest you to move to HA forum for help about this topic. Please close this thread if you don't have other issue directly related to integration.

@scannifn
Copy link
Author

Many thanks in any case. Sure, I will close it as you requested.
Bye, Nicola

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants