forked from erikarenhill/solaredge-modbus-hass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-configuration.yaml
123 lines (120 loc) · 5.79 KB
/
sample-configuration.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
solaredge_modbus:
name: 'SolarEdge Modbus'
host: 192.168.1.111
port: 1502
scan_interval: 5 #Optional: time in seconds between readings. Recommended value is at fastest 2-3 sec, default 5
read_meter1: false #Optional: set this to true if you have an external modbus meter connected with RS485 for reading self consumption
read_battery: false #Optional
utility_meter:
solar_production_daily:
source: sensor.solaredge_lifetime_production
cycle: daily
solar_production_hourly:
source: sensor.solaredge_lifetime_production
cycle: hourly
solar_production_weekly:
source: sensor.solaredge_lifetime_production
cycle: weekly
solar_production_monthly:
source: sensor.solaredge_lifetime_production
cycle: monthly
sensor:
- platform: template
sensors:
solaredge_ac_total_current:
friendly_name: "AC Total Current"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_total_current') }}"
unit_of_measurement: 'A'
solaredge_ac_current_phase_a:
friendly_name: "AC Current Phase A"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_current_phase_a') }}"
unit_of_measurement: 'A'
solaredge_ac_current_phase_b:
friendly_name: "AC Current Phase B"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_current_phase_b') }}"
unit_of_measurement: 'A'
solaredge_ac_current_phase_c:
friendly_name: "AC Current Phase C"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_current_phase_c') }}"
unit_of_measurement: 'A'
solaredge_ac_voltage_phase_ab:
friendly_name: "SolarEdge AC Output Voltage (A-B)"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_voltage_phase_ab') }}"
unit_of_measurement: 'V'
solaredge_ac_current_voltage_a:
friendly_name: "AC Voltage Phase A"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_voltage_phase_a') }}"
unit_of_measurement: 'V'
solaredge_ac_current_voltage_b:
friendly_name: "AC Voltage Phase B"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_voltage_phase_b') }}"
unit_of_measurement: 'V'
solaredge_ac_current_voltage_c:
friendly_name: "AC Voltage Phase C"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_voltage_phase_c') }}"
unit_of_measurement: 'V'
solaredge_ac_power_output:
friendly_name: "AC Power Output"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_power_output') }}"
unit_of_measurement: 'W'
solaredge_dc_current:
friendly_name: "DC Current"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'dc_current') }}"
unit_of_measurement: 'A'
solaredge_dc_voltage:
friendly_name: "DC Voltage"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'dc_voltage') }}"
unit_of_measurement: 'V'
solaredge_dc_power_input:
friendly_name: "DC Power Input"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'dc_power_input') }}"
unit_of_measurement: 'W'
solaredge_heatsink_temp:
friendly_name: "Inverter Heat sink Temperature"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'heat_sink_temperature') }}"
unit_of_measurement: '°C'
solaredge_inverter_efficiency:
friendly_name: "Inverter efficiency"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'computed_inverter_efficiency') }}"
unit_of_measurement: '%'
solaredge_ac_frequency:
friendly_name: "AC Frequency"
value_template: "{{ state_attr('sensor.solaredge_modbus', 'ac_frequency') }}"
unit_of_measurement: 'Hz'
solaredge_lifetime_production:
friendly_name: "Lifetime production"
value_template: "{{ (state_attr('sensor.solaredge_modbus', 'ac_lifetimeproduction') / 1000.0) | round(2) }}"
unit_of_measurement: 'kWh'
solaredge_status:
friendly_name: "SolarEdge Status"
value_template: >-
{% if state_attr('sensor.solaredge_modbus', 'status') == 1 %}
Off
{% elif state_attr('sensor.solaredge_modbus', 'status') == 2 %}
Sleep
{% elif state_attr('sensor.solaredge_modbus', 'status') == 3 %}
Wake-Up
{% elif state_attr('sensor.solaredge_modbus', 'status') == 4 %}
Working
{% elif state_attr('sensor.solaredge_modbus', 'status') == 5 %}
Throttled
{% elif state_attr('sensor.solaredge_modbus', 'status') == 6 %}
Shut-Down
{% elif state_attr('sensor.solaredge_modbus', 'status') == 7 %}
Fault
{% elif state_attr('sensor.solaredge_modbus', 'status') == 8 %}
Maintenance
{% else %}
Unknown
{% endif %}
battery_energy_flow:
friendly_name: "Battery Energy Flow"
value_template: "{{ state_attr('sensor.solaredge_modbus_battery', 'battery_energy_flow') }}"
unit_of_measurement: 'W'
battery_percentage:
friendly_name: "Battery Percentage"
value_template: "{{ state_attr('sensor.solaredge_modbus_battery', 'battery_percentage') }}"
unit_of_measurement: '%'
battery_status:
friendly_name: "Battery Status"
value_template: "{{ state_attr('sensor.solaredge_modbus_battery', 'battery_status') }}"