I would like to have something similar to this:
config:
icon: hp
label: Bewoners thuis?
order: "9"
sidebar: true
stylesheet: |
.horz-toggle.large-vertical-toggle { transform: scale(2); rotate(0deg); }
visibleTo:
- role:administrator
blocks:
- component: oh-block
config: {}
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-label-card
config:
icon: oh:presence
iconUseState: true
item: cln_thuis_owntracks
title: CLN
masonry: []
grid: []
canvas: []
But unfortunately, that code looks like this:
I would like to only show the dynamic icon, and not the state string. Something like an oh-toggle-card, but with the icon where the toggle switch is.
Thanks for anyone’s magic!
I tried this:
config:
icon: hp
label: Bewoners thuis?
order: "9"
sidebar: true
stylesheet: |
.horz-toggle.large-vertical-toggle { transform: scale(2); rotate(0deg); }
visibleTo:
- role:administrator
blocks:
- component: oh-block
config: {}
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config: {}
slots:
default:
- component: oh-card
config:
title: CLN
slots:
content:
- component: oh-icon
config:
icon: oh:presence
iconUseState: true
item: cln_thuis_owntracks
masonry: []
grid: []
canvas: []
But then the icon is ridiculously large (what is the normal width and height of widget icons?), but most importantly: not dynamic.
