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

hours_to_show + state_map error with labels #1185

Open
javierpose opened this issue Dec 17, 2024 · 1 comment
Open

hours_to_show + state_map error with labels #1185

javierpose opened this issue Dec 17, 2024 · 1 comment
Labels
question Further information is requested

Comments

@javierpose
Copy link

javierpose commented Dec 17, 2024

If hours_to_show is used with state_map, instead of showing the 2 labels of the binary_sensor it repeats the last label. Example:

type: custom:mini-graph-card
entities:
  - entity: binary_sensor.entrada_contact
  - entity: binary_sensor.nuki_casa_kato_kale_locked
name: Entrada
show:
  state: false
  labels: true
hours_to_show: 8
points_per_hour: 1
update_interval: 30
line_width: 2
state_map:
  - value: "on"
    label: Abierto
  - value: "off"
    label: Cerrado
grid_options:
  columns: full
visibility:
  - condition: state
    entity: device_tracker.tapo
    state_not: home
Anotación 2024-12-17 115924
@ildar170975
Copy link
Collaborator

Not related to state_map and hours_to_show.
The value within this period is constant and thus displays both label for max and min.
Suggest to test with any constant numerical value.
A possible workaround - define bounds explicitly.

@ildar170975 ildar170975 added the question Further information is requested label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants