SHOW:
|
|
- or go back to the newest paste.
1 | type: markdown | |
2 | content: >2 | |
3 | ||
4 | ||
5 | <font size="3"><ha-icon icon="mdi:power-plug"></ha-icon>El koster lige nu **{{ (state_attr('sensor.energi_data_service', | |
6 | 'current_price'))|replace('.',',')}}** kr. - det er **{{ | |
7 | (state_attr('sensor.energi_data_service', 'current_price') | float * 100 / | |
8 | (state_attr('sensor.energi_data_service', 'today_mean') | float * 100 )| float | |
9 | * 100 ) | round (2)|replace('.',',')}} %** sammenlignet med andre timer i dag. | |
10 | ||
11 | ||
12 | Hvis du vil vaske i dag, så er de billigste timer: | |
13 | ||
14 | {% set l=(state_attr('sensor.energi_data_service', 'raw_today' | |
15 | )|sort(attribute='price')) %} | |
16 | ||
17 | {% set h=(state_attr('sensor.energi_data_service', 'raw_today' | |
18 | )|sort(reverse=true, attribute='price')) %} | |
19 | ||
20 | <ha-icon icon="mdi:clock-check"></ha-icon> 1. Billigste time {{ | |
21 | l[0].hour.time()}}, Pris: {{ l[0].price|replace('.',',')}} kr. | |
22 | ||
23 | <ha-icon icon="mdi:clock-check"></ha-icon> 2. billigste time {{ | |
24 | l[1].hour.time() }}, Pris: {{ l[1].price|replace('.',',')}} kr. | |
25 | ||
26 | <ha-icon icon="mdi:clock-check"></ha-icon> 3. billigste time {{ | |
27 | l[2].hour.time() }}, Pris: {{ l[2].price|replace('.',',')}} kr. | |
28 | ||
29 | <ha-icon icon="mdi:clock-check"></ha-icon> 4. billigste time {{ | |
30 | l[3].hour.time() }}, Pris: {{ l[3].price|replace('.',',')}} kr. | |
31 | ||
32 | <ha-icon icon="mdi:clock-check"></ha-icon> 5. billigste time {{ | |
33 | l[4].hour.time() }}, Pris: {{ l[4].price|replace('.',',')}} kr. | |
34 | ||
35 | ||
36 | Disse er de dyreste timer: | |
37 | ||
38 | ||
39 | <ha-icon icon="mdi:clock-alert"></ha-icon> 1. Dyreste time {{ | |
40 | h[0].hour.time()}}, Pris: {{ h[0].price|replace('.',',')}} kr. | |
41 | ||
42 | <ha-icon icon="mdi:clock-alert"></ha-icon> 2. dyreste time {{ h[1].hour.time() | |
43 | }}, Pris: {{ h[1].price|replace('.',',')}} kr. | |
44 | ||
45 | <ha-icon icon="mdi:clock-alert"></ha-icon> 3. dyreste time {{ h[2].hour.time() | |
46 | }}, Pris: {{ h[2].price|replace('.',',')}} kr. | |
47 | ||
48 | <ha-icon icon="mdi:clock-alert"></ha-icon> 4. dyreste time {{ h[3].hour.time() | |
49 | }}, Pris: {{ h[3].price|replace('.',',')}} kr. | |
50 | ||
51 | <ha-icon icon="mdi:clock-alert"></ha-icon> 5. dyreste time {{ h[4].hour.time() | |
52 | }}, Pris: {{ h[4].price|replace('.',',')}} kr. | |
53 | ||
54 | Gennemsnitsprisen i dag er: **{{ (state_attr('sensor.energi_data_service', | |
55 | 'today_mean'))|round(3)|replace('.',',')}}** kr. | |
56 | ||
57 | ||
58 | <ha-icon icon="mdi:cash-multiple"></ha-icon> Du sparer **{{(((state_attr('sensor.energi_data_service', | |
59 | 'today_mean')) - l[0].price) / (state_attr('sensor.energi_data_service', | |
60 | 'today_mean'))| float * 100 ) | round (2)|replace('.',',')}} %** ved at vaske | |
61 | i den billigste time i forhold til dagens gennemsnit. | |
62 | ||
63 | Eller **{{((h[0].price - l[0].price) / h[0].price| float * 100 ) | round | |
64 | (2)|replace('.',',')}} %** i forhold til den dyreste time! <ha-icon | |
65 | icon="mdi:alert"></ha-icon> | |
66 | title: Hej Familie | |
67 |