Gauge with needle in 2 column render is off

I have a dashboard that monitors my well, and when I enable to gauge with the needle, it is renders funny…

I have tried different configurations & cannot get it to work.

Here is my config…

views:
  - title: Summary
    badges: []
    cards:
      - type: grid
        cards:
          - type: button
            tap_action:
              action: navigate
              navigation_path: /lift-station
            entity: binary_sensor.lift_station_pumping
            icon: mdi:forklift
            hold_action:
              action: none
            name: Lift Station
            show_state: false
          - type: button
            tap_action:
              action: navigate
              navigation_path: well-1
            entity: binary_sensor.well_2_running
            icon: mdi:water-pump
            name: Well 1
            hold_action:
              action: none
          - type: button
            tap_action:
              action: navigate
              navigation_path: well-2
            entity: binary_sensor.well_2_running
            icon: mdi:water-pump
            name: Well 2
            hold_action:
              action: none
        columns: 3
  - title: Lift Station
    path: lift-station
    icon: mdi:forklift
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: grid
            cards:
              - type: gauge
                entity: sensor.lift_station_pump_1_run_count
                min: 1
                max: 10
                needle: true
                name: Pump 1
                severity:
                  green: 1
                  yellow: 5
                  red: 7
              - type: gauge
                entity: sensor.lift_station_pump_2_run_count
                min: 1
                max: 10
                needle: true
                name: Pump 2
                severity:
                  green: 1
                  yellow: 5
                  red: 7
            columns: 2
            square: false
          - type: grid
            cards:
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_pumping
                show_name: true
                show_state: false
                hold_action:
                  action: none
                name: Pumping
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_pump_both_running
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Both
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_hung
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Hung
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_stop
                hold_action:
                  action: none
                show_name: true
                show_icon: true
                show_state: false
                icon: mdi:electric-switch
                name: Stop
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_lead
                hold_action:
                  action: none
                show_name: true
                show_icon: true
                show_state: false
                name: Lead
                icon: mdi:electric-switch
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_lag
                hold_action:
                  action: none
                show_name: true
                show_icon: true
                show_state: false
                icon: mdi:electric-switch
                name: Lag
            square: false
      - type: logbook
        entities:
          - binary_sensor.lift_station_pump_1_running
          - binary_sensor.lift_station_pump_2_running
          - binary_sensor.lift_station_stop
          - binary_sensor.lift_station_lead
          - binary_sensor.lift_station_lag
        hours_to_show: 24
  - title: Well 1
    path: well-1
    icon: mdi:water-pump
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: grid
            cards:
              - type: gauge
                entity: sensor.well_pump_1_run_count
                min: 1
                name: Today
                severity:
                  green: 1
                  yellow: 10
                  red: 15
                max: 20
                needle: true
              - type: gauge
                entity: sensor.well_pump_1_last_hour_run_count
                min: 1
                name: Last Hour
                severity:
                  green: 4
                  yellow: 7
                  red: 9
                max: 10
                needle: true
            columns: 2
            square: false
          - type: grid
            cards:
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_1_running
                show_name: true
                show_state: false
                hold_action:
                  action: none
                name: Pumping
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_1_hung
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Hung
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_1_overuse
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Overuse
            columns: 3
            square: false
      - type: logbook
        entities:
          - binary_sensor.well_1_running
        hours_to_show: 24
  - title: Well 2
    path: well-2
    icon: mdi:water-pump
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: grid
            cards:
              - type: gauge
                entity: sensor.well_pump_2_run_count
                min: 1
                name: Today
                severity:
                  green: 1
                  yellow: 10
                  red: 15
                max: 20
                needle: true
              - type: gauge
                entity: sensor.well_pump_2_last_hour_run_count
                min: 1
                name: Last Hour
                severity:
                  green: 4
                  yellow: 7
                  red: 9
                max: 10
                needle: true
            columns: 2
            square: false
          - type: grid
            cards:
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_2_running
                show_name: true
                show_state: false
                hold_action:
                  action: none
                name: Pumping
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_2_hung
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Hung
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_2_overuse
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Overuse
            columns: 3
            square: false
      - type: logbook
        entities:
          - binary_sensor.well_2_running
        hours_to_show: 24

Can anyone see anything wrong with the config?

Try this:

              - type: gauge
                entity: sensor.well_pump_1_last_hour_run_count
                min: 1
                name: Last Hour
                severity:
                  green: 0
                  yellow: 7
                  red: 9
                max: 10
1 Like

Perfect!

Thanks @tom_l

Fixed the others too…

1 Like

Actually I missed that you have the gauge minimum set to 1. So green should start at 1, but 0 probably wont hurt.

@tom_l I should have been clear. I wanted the min to be 0, but that was one of the things that I tweaked, Now that I understand the severity is the start of min to trigger, then I moved min back to 0.

This is the final config…

views:
  - title: Summary
    badges: []
    cards:
      - type: grid
        cards:
          - type: button
            tap_action:
              action: navigate
              navigation_path: /lift-station
            entity: binary_sensor.lift_station_pumping
            icon: mdi:forklift
            hold_action:
              action: none
            name: Lift Station
            show_state: false
          - type: button
            tap_action:
              action: navigate
              navigation_path: well-1
            entity: binary_sensor.well_2_running
            icon: mdi:water-pump
            name: Well 1
            hold_action:
              action: none
          - type: button
            tap_action:
              action: navigate
              navigation_path: well-2
            entity: binary_sensor.well_2_running
            icon: mdi:water-pump
            name: Well 2
            hold_action:
              action: none
        columns: 3
  - title: Lift Station
    path: lift-station
    icon: mdi:forklift
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: grid
            cards:
              - type: gauge
                entity: sensor.lift_station_pump_1_run_count
                min: 0
                max: 10
                needle: true
                name: Pump 1
                severity:
                  green: 0
                  yellow: 5
                  red: 7
              - type: gauge
                entity: sensor.lift_station_pump_2_run_count
                min: 0
                max: 10
                needle: true
                name: Pump 2
                severity:
                  green: 0
                  yellow: 5
                  red: 7
            columns: 2
            square: false
          - type: grid
            cards:
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_pumping
                show_name: true
                show_state: false
                hold_action:
                  action: none
                name: Pumping
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_pump_both_running
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Both
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_hung
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Hung
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_stop
                hold_action:
                  action: none
                show_name: true
                show_icon: true
                show_state: false
                icon: mdi:electric-switch
                name: Stop
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_lead
                hold_action:
                  action: none
                show_name: true
                show_icon: true
                show_state: false
                name: Lead
                icon: mdi:electric-switch
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.lift_station_lag
                hold_action:
                  action: none
                show_name: true
                show_icon: true
                show_state: false
                icon: mdi:electric-switch
                name: Lag
            square: false
      - type: logbook
        entities:
          - binary_sensor.lift_station_pump_1_running
          - binary_sensor.lift_station_pump_2_running
          - binary_sensor.lift_station_stop
          - binary_sensor.lift_station_lead
          - binary_sensor.lift_station_lag
        hours_to_show: 24
  - title: Well 1
    path: well-1
    icon: mdi:water-pump
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: grid
            cards:
              - type: gauge
                entity: sensor.well_pump_1_run_count
                min: 0
                name: Today
                severity:
                  green: 0
                  yellow: 10
                  red: 15
                max: 20
                needle: true
              - type: gauge
                entity: sensor.well_pump_1_last_hour_run_count
                min: 0
                name: Last Hour
                severity:
                  green: 0
                  yellow: 7
                  red: 9
                max: 10
                needle: true
            columns: 2
            square: false
          - type: grid
            cards:
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_1_running
                show_name: true
                show_state: false
                hold_action:
                  action: none
                name: Pumping
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_1_hung
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Hung
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_1_overuse
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Overuse
            columns: 3
            square: false
      - type: logbook
        entities:
          - binary_sensor.well_1_running
        hours_to_show: 24
  - title: Well 2
    path: well-2
    icon: mdi:water-pump
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: grid
            cards:
              - type: gauge
                entity: sensor.well_pump_2_run_count
                min: 0
                name: Today
                severity:
                  green: 0
                  yellow: 10
                  red: 15
                max: 20
                needle: true
              - type: gauge
                entity: sensor.well_pump_2_last_hour_run_count
                min: 0
                name: Last Hour
                severity:
                  green: 0
                  yellow: 7
                  red: 9
                max: 10
                needle: true
            columns: 2
            square: false
          - type: grid
            cards:
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_2_running
                show_name: true
                show_state: false
                hold_action:
                  action: none
                name: Pumping
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_2_hung
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Hung
              - type: button
                tap_action:
                  action: none
                entity: binary_sensor.well_2_overuse
                hold_action:
                  action: none
                show_name: true
                show_state: false
                name: Overuse
            columns: 3
            square: false
      - type: logbook
        entities:
          - binary_sensor.well_2_running
        hours_to_show: 24
1 Like