Untitled
unknown
plain_text
9 months ago
3.7 kB
26
Indexable
decluttering_templates: header_main: card: type: custom:paper-buttons-row styles: justify-content: space-between background: none margin: 24px 20px 16px text-shadow: 0px 0px 20px var(--card-background-color); buttons: - layout: name_state name: '{{ states(''sensor.day_en'') }}, {{ states(''sensor.date_en'') }}' state: '{{ now().strftime(''%H'') }}:{{ now().strftime(''%M'')}}' styles: name: font-weight: 400 font-size: 16px margin-left: 0 display: block text-align: left float: left width: 140px button: pointer-events: none align-items: left width: 140px line-height: 1.6em state: font-weight: 700 font-size: 30px letter-spacing: '-1px' margin-left: 0 display: block text-align: left float: left width: 140px - layout: icon|name_state name: ⌂ {{ states('sensor.home_temperature') }}°F state: '{{ state_attr(''weather.home'',''temperature'') }}°F' image: | {% set mapper = { 'breezy':'cloudy', 'clear-night':'night', 'clear':'day', 'mostly-clear':'day', 'clear-day':'day', 'cloudy':'cloudy', 'fog':'fog', 'hail':'rainy-7', 'haze':'haze', 'lightning':'thunder', 'mostly-cloudy':'cloudy', 'partlycloudy':'cloudy-day-3', 'partly-cloudy-day':'partly-cloudy-day', 'partly-cloudy-night':'partly-cloudy-night', 'rain':'rainy-4', 'scattered-showers':'rainy-3', 'showers':'rainy-6', 'sleet':'sleet', 'snow':'snowy-6', 'mostly-sunny':'day', 'sunny':'day', 'thunderstorm':'thunder', 'tornado':'tornado', 'wind':'wind', 'windy':'wind'} %} {% set state = states('weather.maison_2') %} {% set weather = mapper[state] if state in mapper else 'weather' %} {% set path = '/local/icons/weather_icons/animated/' %} {% set ext = '.svg'%} {{[path,weather,ext]|join('')}} styles: name: font-weight: 400 font-size: 16px margin-left: 0 display: block text-align: right width: 140px button: pointer-events: none align-items: right width: 140px line-height: 1.6em state: font-weight: 600 font-size: 30px letter-spacing: '-1px' margin-left: 0 display: block text-align: right width: 140px icon: position: absolute left: 2px transform: scale(0.17) transform-origin: 0 19.5% top: '-48px;' padding: 0; height: 380px !important; width: 380px !important; views: - theme: noctis icon: '' path: default_view title: HOME visible: - user: 12345678901234567000 type: sidebar badges: [] cards: - type: custom:decluttering-card template: header_main
Editor is loading...
Leave a Comment