AmoebeLabs / AmoebeLabs/flex-horseshoe-card

no attribute,don't show value

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
397
Forks
66
Avg merge
7m
Merged PRs (30d)
81

Description

`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](https://github.com/AmoebeLabs/flex-horseshoe-card/assets/3983453/00f3c41f-f9da-478c-a0cf-bf080b1b428b)
![Snipaste_2023-07-09_23-48-58](https://github.com/AmoebeLabs/flex-horseshoe-card/assets/3983453/205e3724-a262-4933-8c24-0b6317408ce8)
![Snipaste_2023-07-09_23-49-13](https://github.com/AmoebeLabs/flex-horseshoe-card/assets/3983453/71c0116c-c2fb-4f87-81d1-97994d1dca4f)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.