This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: custom:button-card | |
entity: switch.lavatricel | |
name: Lavatrice | |
icon: mdi:washing-machine | |
label: | | |
[[[ return states['sensor.watt_lavatrice'].state + ' W' ; ]]] | |
show_label: true | |
hold_action: | |
action: more-info | |
entity: sensor.watt_lavatrice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest: | |
- resource: https://www.mise.gov.it/images/exportCSV/prezzo_alle_8.csv | |
scan_interval: 21600 # aggiornamento ogni 6 ore | |
sensor: | |
- name: Prezzo Benzina Tamoil | |
unit_of_measurement: '€/lt' | |
icon: mdi:gas-station-outline | |
value_template: >- | |
{% set r = value.replace('\ufeff', '').split('\n') %} | |
{% set ns = namespace(s="") %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**Prossimi svuotamenti Contarina** | |
- - - | |
{% set settimana = ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"] %} | |
{% set gds = ( (now().isoweekday() + state_attr('sensor.ical_contarina_event_0', 'eta')) % 7 ) %} | |
{{ settimana[gds] }} {{ ( as_timestamp(now()) + ((state_attr('sensor.ical_contarina_event_0', 'eta')) | float*24*3600)) | timestamp_custom("%d", True) }}: {{ state_attr('sensor.ical_contarina_event_0', 'summary') }} | |
{% set gds = ( (now().isoweekday() + state_attr('sensor.ical_contarina_event_1', 'eta')) % 7 ) %} | |
{{ settimana[gds] }} {{ ( as_timestamp(now()) + ((state_attr('sensor.ical_contarina_event_1', 'eta')) | float*24*3600)) | timestamp_custom("%d", True) }}: {{ state_attr('sensor.ical_contarina_event_1', 'summary') }} | |
{% set gds = ( (now().isoweekday() + state_attr('sensor.ical_contarina_event_2', 'eta')) % 7 ) %} | |
{{ settimana[gds] }} {{ ( as_timestamp(now()) + ((state_attr('sensor.ical_contarina_event_2', 'eta')) | float*24*3600)) | timestamp_custom("%d", True) }}: { |