-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkaifa_energy_meter.yaml
87 lines (76 loc) · 2.68 KB
/
kaifa_energy_meter.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# kaifa_energy_meter.yaml
mqtt:
sensor:
- name: "Kaifa Total Energy Consumed"
state_topic: "tele/CTS_tasmota_SML_EF0CF1/SENSOR"
value_template: "{{ value_json.Kaifa.Energy_In_T }}"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: "total_increasing"
icon: mdi:flash
unique_id: "kaifa_total_energy_consumed"
- name: "Kaifa Total Energy Produced"
state_topic: "tele/CTS_tasmota_SML_EF0CF1/SENSOR"
value_template: "{{ value_json.Kaifa.Energy_Out_T }}"
unit_of_measurement: "kWh"
device_class: "energy"
state_class: "total_increasing"
icon: mdi:flash
unique_id: "kaifa_total_energy_produced"
- name: "Kaifa Last Update Time"
state_topic: "tele/CTS_tasmota_SML_EF0CF1/SENSOR"
value_template: >
{{ as_datetime(value_json.Time ~ "+0000") }}
device_class: "timestamp"
unique_id: "kaifa_last_update_time"
utility_meter:
kaifa_energy_consumed_daily:
name: "Energie afgenomen vandaag"
source: sensor.kaifa_total_energy_consumed
cycle: daily
kaifa_energy_consumed_monthly:
name: "Energie afgenomen deze maand"
source: sensor.kaifa_total_energy_consumed
cycle: monthly
kaifa_energy_consumed_yearly:
name: "Energie afgenomen dit jaar"
source: sensor.kaifa_total_energy_consumed
cycle: yearly
kaifa_energy_produced_daily:
name: "Energie terug geleverd vandaag"
source: sensor.kaifa_total_energy_produced
cycle: daily
kaifa_energy_produced_monthly:
name: "Energie terug geleverd deze maand"
source: sensor.kaifa_total_energy_produced
cycle: monthly
kaifa_energy_produced_yearly:
name: "Energie terug geleverd dit jaar"
source: sensor.kaifa_total_energy_produced
cycle: yearly
# Grouping sensors for the Kaifa Energy Meter
homeassistant:
customize:
group.kaifa_energy_meter:
name: "Kaifa Energy Meter"
entities:
- sensor.kaifa_total_energy_consumed
- sensor.kaifa_total_energy_produced
- sensor.kaifa_energy_consumed_daily
- sensor.kaifa_energy_consumed_monthly
- sensor.kaifa_energy_consumed_yearly
- sensor.kaifa_energy_produced_daily
- sensor.kaifa_energy_produced_monthly
- sensor.kaifa_energy_produced_yearly
group:
kaifa_energy_meter:
name: "Kaifa Energy Meter"
entities:
- sensor.kaifa_total_energy_consumed
- sensor.kaifa_total_energy_produced
- sensor.kaifa_energy_consumed_daily
- sensor.kaifa_energy_consumed_monthly
- sensor.kaifa_energy_consumed_yearly
- sensor.kaifa_energy_produced_daily
- sensor.kaifa_energy_produced_monthly
- sensor.kaifa_energy_produced_yearly