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

no attribute,don't show value #71

Open
flamestsui opened this issue Jul 9, 2023 · 0 comments
Open

no attribute,don't show value #71

flamestsui opened this issue Jul 9, 2023 · 0 comments

Comments

@flamestsui
Copy link

`title: 我的家
views:

  • theme: ios-dark-mode-dark-blue
    path: home
    title: Home
    badges: []
    cards:
    • type: custom:flex-horseshoe-card
      entities:
      • entity: climate.lumi_v2_2fbb_air_conditioner
        name: 空调
        unit: °C
        attribute: temperature
      • entity: sensor.lumi_v2_2fbb_electric_power
        decimals: 2
        name: " "
        unit: W
      • entity: sensor.lumi_v2_2fbb_power_cost_today
        decimals: 2
        unit: kWh
        name: 当日电量
      • entity: sensor.lumi_v2_2fbb_power_cost_month
        decimals: 2
        unit: kWh
        name: 当月电量
      • entity: climate.lumi_v2_2fbb_air_conditioner
      • entity: climate.lumi_v2_2fbb_air_conditioner
        attribute: temperature
        unit: °C
        show:
        horseshoe_style: lineargradient
        layout:
        hlines:
        • id: 0
          xpos: 50
          ypos: 42
          length: 70
          styles:
          • stroke: var(--primary-text-color);
          • stroke-width: 5;
          • stroke-linecap: round;
          • opacity: 0.7;
            vlines:
        • id: 0
          xpos: 50
          ypos: 56
          length: 20
          styles:
          • stroke: white;
          • opacity: 0.5;
          • stroke-width: 2;
          • stroke-linecap: round;
            states:
        • id: 0
          entity_index: 0
          xpos: 50
          ypos: 24
          styles:
          • font-size: 2em;
        • id: 1
          entity_index: 1
          xpos: 50
          ypos: 36
          styles:
          • font-size: 1.5em;
        • id: 2
          entity_index: 2
          xpos: 15
          ypos: 55
          styles:
          • text-anchor: start;
          • font-size: 1.5em;
        • id: 3
          entity_index: 3
          xpos: 60
          ypos: 55
          styles:
          • text-anchor: start;
          • font-size: 1.5em;
        • id: 4
          entity_index: 4
          xpos: 40
          ypos: 80
          styles:
          • font-size: 1.5em;
        • id: 5
          entity_index: 5
          xpos: 60
          ypos: 80
          styles:
          • font-size: 1.5em;
            names:
        • id: 0
          entity_index: 0
          xpos: 50
          ypos: 95
        • id: 1
          entity_index: 1
          xpos: 50
          ypos: 95
        • id: 2
          entity_index: 2
          xpos: 40
          ypos: 65
          styles:
          • font-size: 0.8em;
          • text-anchor: end;
          • opacity: 0.7;
        • id: 3
          entity_index: 3
          xpos: 60
          ypos: 65
          styles:
          • font-size: 0.8em;
          • text-anchor: start;
          • opacity: 0.7;
            horseshoe_scale:
            min: -10
            max: 40
            color_stops:
            '16': '#FFF6E3'
            '17': '#FFE9B9'
            '18': '#FFDA8A'
            '19': '#FFCB5B'
            '20': '#FFBF37'
            '21': '#ffb414'
            '22': '#FFAD12'
            '23': '#FFA40E'
            '24': '#FF9C0B'
            '25': '#FF8C06'
            `

this is code
the first entity used attribute,other entity not show the value
Snipaste_2023-07-09_23-48-01
Snipaste_2023-07-09_23-48-58
Snipaste_2023-07-09_23-49-13

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

1 participant