Skip to content

Display boolean values the right way #553

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

Open
pparvin opened this issue Apr 7, 2025 · 1 comment
Open

Display boolean values the right way #553

pparvin opened this issue Apr 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@pparvin
Copy link

pparvin commented Apr 7, 2025

Whenever the value of my boolean sensor changes from false to true the graph also changes the y-axis. So false is up and true is down.

Image

type: custom:plotly-graph
entities:

  • entity: sensor.vorlauf
    line:
    color: red
  • entity: sensor.rucklauf
    line:
    color: green
  • entity: sensor.heat_demand
    name: Bedarf
    fill: tozeroy
    line:
    color: lightblue
    hours_to_show: 24
    layout:
    xaxis:
    rangeselector:
    "y": 1.2
    buttons:
    - count: 1
    step: minute
    - count: 1
    step: hour
    - count: 12
    step: hour
    - count: 1
    step: day
    - count: 7
    step: day
    refresh_interval: 10
    title: Heizung

Do I need some more code in the yaml to manage this?

Regards
Patrik

@pparvin pparvin added the bug Something isn't working label Apr 7, 2025
@pparvin
Copy link
Author

pparvin commented Apr 7, 2025

Ok, found solution to this by myself. I formatted the 2nd y-axis with

range:

  • 1
  • 0

This will hopefully solve it.

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

1 participant