-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsunton_01.yaml
59 lines (58 loc) · 3.65 KB
/
sunton_01.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Sunton 8048s070c openHASP configuration
# 480 x 800 resolution display
sunton_01:
objects:
- obj: "p0b4"
properties:
"val": "{{states('openhasp.sunton_01') | int(0) -1}}"
- obj: "p0b5"
properties:
"text": "{% if states('sensor.outdoor_temperature') != 'unknown' %} {{ '%.1f' | format (states('sensor.outdoor_temperature') | round(1)) }}{{'\\u00b0'}}C {% else %} -.-{{'\\u00b0'}}C{% endif %}"
- obj: "p0b7"
properties:
"text_color": "{% if -50 <= state_attr('openhasp.sunton_01','rssi') | int(0) %}green{% elif -51 > state_attr('openhasp.sunton_01','rssi') | int(0) >= -60 %}olive{% elif -61 > state_attr('openhasp.sunton_01','rssi') | int(0) >= -70 %}orange{% elif -71 > state_attr('openhasp.sunton_01','rssi') |int (0) >= -80 %}maroon{% else %}red{% endif %}"
- obj: "p1b2"
properties:
"value_color": >
{% if states('binary_sensor.solivia_night_status') == 'on' %}#F0E68C{% else %}#FFFF00{% endif %}
"value_str": >
{% if states('binary_sensor.solivia_night_status') == 'on' %}{{'\ue594'}}{% else %}{{'\ue599'}}{% endif %}
"val": "{{ states('sensor.solar_ac_power') | int(0) }}"
- obj: "p1b5"
properties:
"text": "{{ states('sensor.solar_ac_power') | int(0) }} W"
"text_color": "{% if 500 > states('sensor.solar_ac_power') | int(0) %}red{% elif 1000 > states('sensor.solar_ac_power') | int(0) >= 500 %}orange{% elif 1500 > states('sensor.solar_ac_power') |int (0) >= 1000 %}yellow{% else %}lime{% endif %}"
- obj: "p1b3"
properties:
"val": "{{ states('sensor.total_active_power') | int(0) }}"
- obj: "p1b4"
properties:
"text": "{{ states('sensor.total_active_power') | int(0) }} Wh"
"text_color": "{% if 0 > states('sensor.total_active_power') | int(0) %}lime{% elif 750 > states('sensor.total_active_power') | int(0) >= 0 %}yellow{% elif 1500 > states('sensor.total_active_power') |int (0) >= 750 %}orange{% else %}red{% endif %}"
- obj: "p1b10"
properties:
"text": "{{ (states('sensor.solar_daily_yield') | float(0.001) / 1000) | round(1) }} kWh"
- obj: "p1b11"
properties:
"text": "\ue04d{{ states('sensor.daily_energy_export_total') | float(0) | round(1) }} kWh"
- obj: "p1b12"
properties:
"text": "\ue054{{ states('sensor.daily_energy_import_total') | float(0) | round(1) }} kWh"
- obj: "p1b13"
properties:
"text": "{{ (states('sensor.daily_energy_import_total') | float(0) + states('sensor.daily_solar_consumption_total') | float(0)) | round(1) }} kWh"
- obj: "p1b20"
properties:
"text": "{{ '%.2f' | format (states('sensor.nordpool_kwh_dk1_dkk_2_095_025') | float(0) | round(2)) }} dkk"
- obj: "p1b40"
properties:
"max": "{{ states('sensor.energy_production_today') | float(0.001) * 1000 }}"
"val": "{{ states('sensor.solar_daily_yield') | int(0) }}"
- obj: "p1b41"
properties:
"max": "{{ (states('sensor.daily_energy_export_total') | float(0.001) * 1000 + states('sensor.daily_energy_import_total') | float(1) * 1000) | int(0) }}"
"val": "{{ (states('sensor.daily_energy_export_total') | float(0.001) * 1000) | int(0) }}"
- obj: "p1b42"
properties:
"max": "{{ (states('sensor.daily_energy_import_total') | float(0.001) * 1000 + states('sensor.daily_solar_consumption_total') | float(0) *1000) | int(0) }}"
"val": "{{ (states('sensor.daily_solar_consumption_total') | float(0.001) * 1000) | int(0) }}"