After much tinkering, I was able to add a similar fitbit custom card to this one here (https://sharethelove.io/picture-elements-cards/fitbit-card). After the latest Home Assistant Upgrade, the custom:hui-markdown-card section stopped working on my desktop, so I added my name as part of the background png.
The big problem, though, is that the cards do not show up in the companion app in my custom tab. when I load that tab in the app, I get the message “Unable to connect to Home Assistant”. If press “Wait”, I can edit the dashboard and see the placeholder, where I can edit the code.
This works without issue if I access this dashboard from chrome on my phone
Also, the icon color definition is not working (default color and I am not using any themes, yet)
Any advice would be appreciated.
type: picture-elements
elements:
- type: 'custom:circle-sensor-card'
entity: sensor.ste_weight_loss
max: 117
min: 0
stroke_width: 15
gradient: true
fill: '#125054'
name: loss
units: ' '
font_style:
font-size: 1.1em
font-color: white
text-shadow: 2px 2px black
style:
top: 5%
left: 80%
width: 4em
height: 4em
transform: none
- type: 'custom:circle-sensor-card'
entity: sensor.ste_fitbit_steps
max: 10000
min: 0
stroke_width: 15
gradient: true
fill: '#125054'
name: steps
units: ' '
font_style:
font-size: 1.1em
font-color: white
text-shadow: 2px 2px black
color_stops:
'1': '#09C7E8'
'10000': '#0BDF0E'
style:
top: 70%
left: 5%
width: 4em
height: 4em
transform: none
- type: 'custom:circle-sensor-card'
entity: sensor.fitbit_ste_floors
max: 10
min: 0
stroke_width: 15
gradient: true
fill: '#125054'
name: floors
units: ' '
font_style:
font-size: 1.1em
font-color: white
text-shadow: 2px 2px black
color_stops:
'1': '#09C7E8'
'10': '#0BDF0E'
style:
top: 70%
left: 24%
width: 4em
height: 4em
transform: none
- type: 'custom:circle-sensor-card'
entity: sensor.fitbit_ste_distance
max: 10
min: 0
stroke_width: 15
gradient: true
fill: '#125054'
name: miles
units: ' '
font_style:
font-size: 1.1em
font-color: white
text-shadow: 2px 2px black
color_stops:
'1': '#09C7E8'
'10': '#0BDF0E'
style:
top: 70%
left: 43%
width: 4em
height: 4em
transform: none
- type: 'custom:circle-sensor-card'
entity: sensor.ste_fitbit_calories
max: 3500
min: 0
stroke_width: 15
gradient: true
fill: '#125054'
name: cals
shadow: true
units: ' '
font_style:
font-size: 1.1em
font-color: white
text-shadow: 2px 2px black
color_stops:
'1': '#09C7E8'
'3000': '#0BDF0E'
style:
top: 70%
left: 62%
width: 4em
height: 4em
transform: none
- type: 'custom:circle-sensor-card'
entity: sensor.fitbit_ste_minutes_very_active
max: 30
min: 0
stroke_width: 15
gradient: true
fill: '#125054'
name: active
units: ' '
font_style:
font-size: 1.1em
font-color: white
text-shadow: 2px 2px black
color_stops:
'1': '#09C7E8'
'30': '#0BDF0E'
style:
top: 70%
left: 80%
width: 4em
height: 4em
transform: none
- type: state-icon
entity: sensor.fitbit_ste_weight
title: Weight
style:
left: 3%
top: 7%
'--iron-icon-fill-color': '#09C7E8'
transform: none
- type: state-label
entity: sensor.fitbit_ste_weight
title: Weight
style:
left: 12%
top: 8%
color: white
transform: none
- type: state-icon
entity: sensor.fitbit_ste_bmi
title: BMI
style:
left: 31%
top: 7%
'--iron-icon-fill-color': '#09C7E8'
transform: none
- type: state-label
entity: sensor.fitbit_ste_bmi
title: BMI
style:
left: 40%
top: 8%
color: white
transform: none
- type: state-icon
entity: sensor.fitbit_ste_body_fat
title: Body Fat
style:
left: 59%
top: 7%
'--iron-icon-fill-color': '#09C7E8'
transform: none
- type: state-label
entity: sensor.fitbit_ste_body_fat
title: Body Fat
style:
left: 67%
top: 8%
color: white
transform: none
- type: state-icon
entity: sensor.fitbit_ste_resting_heart_rate
title: Resting HR
style:
left: 3%
top: 21%
'--iron-icon-fill-color': red
transform: none
- type: state-label
entity: sensor.fitbit_ste_resting_heart_rate
title: Resting HR
style:
left: 12%
top: 22%
color: white
transform: none
image: 'https://xxx.xxx.xxx.xxx:8123/local/local/lovelace/ste_fitbit_card_1.png'