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

Invalid setting Column in Gauge addons #200

Open
Deathleaves opened this issue Jan 5, 2023 · 5 comments
Open

Invalid setting Column in Gauge addons #200

Deathleaves opened this issue Jan 5, 2023 · 5 comments

Comments

@Deathleaves
Copy link

Is there someone have the same issue that I have found? No matter what the number of the column, the presented column is always 1. For examlpe
gauge:
- title: hide
columns: 4
entities:
- entity: sensor.ds920plus_volume_1_volume_used
name: 存储空间1
needle: trure
severity:
red: 75
yellow: 50
green: 25
- entity: sensor.ds920plus_volume_2_volume_used
name: 存储空间2
needle: trure
severity:
red: 75
yellow: 50
green: 25
- entity: sensor.ds920plus_volume_3_volume_used
name: 存储空间3
needle: trure
severity:
red: 75
yellow: 50
green: 25
- entity: sensor.ds920plus_volume_3_volume_used
name: 存储空间3
needle: trure
severity:
red: 75
yellow: 50
green: 25
image

@Deathleaves
Copy link
Author

Deathleaves commented Jan 6, 2023

One way to solve it is to answer this question. How to change the layout type and max_cols of the stack of Gauge?

@andreastomincssi
Copy link

I have the same issue, is there already a solution for that?

@Deathleaves
Copy link
Author

I have the same issue, is there already a solution for that?

Unfortunately no. And I used the custom addon instead, in which the layout can be accurately difined.
e.g.,
custom:
- title: hide
cards:
- type: horizontal-stack
cards:
- type: gauge
entity: sensor.ds920plus_volume_1_volume_used
name: Volume1
needle: true
severity:
red: 75
yellow: 50
green: 25
- type: gauge
entity: sensor.ds920plus_volume_2_volume_used
name: Volume2
needle: true
severity:
red: 75
yellow: 50
green: 25
- type: gauge
entity: sensor.ds920plus_volume_3_volume_used
name: Volume3
needle: true
severity:
red: 75
yellow: 50
green: 25

@andreastomincssi
Copy link

andreastomincssi commented Jan 28, 2023

I have this configuration:

custom:
  - title: hide
    cards:
      - type: horizontal-stack
        cards:
        - type: gauge
          entity: input_number.solarnet_power_photovoltaics_round
          name: Aktuelle Produktion
          unit: W
          min: 1
          max: 8100
          needle: true
          severity:
            green: 4000
            yellow: 2000
            red: 0
      - type: gauge
        entity: input_number.pvcurrentvalueoftheday
        name: Tagesproduktion
        unit: KW
        min: 1
        max: 50
        needle: true
        severity:
          green: 20
          yellow: 10
          red: 0
      - type: gauge
        entity: input_number.sensor_solarnet_power_load_abs
        name: Aktueller Verbrauch
        unit: W
        min: 0
        max: 8000
        needle: true
        severity:
          green: 0
          yellow: 1000
          red: 3000

but still shows in vertical the 3 gauge's...
do you have an idea, what's wrong?

in the standard lovelace it is working correct.

@Deathleaves
Copy link
Author

As seen from your code, you may need to check the indentations of "type: gauge". It should look like this:
image

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