-
Notifications
You must be signed in to change notification settings - Fork 0
/
homeassistant-mqtt.yml
128 lines (127 loc) · 4.91 KB
/
homeassistant-mqtt.yml
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
124
125
126
127
128
sensor:
# QPIGS
- unique_id: "voltronic_grid_voltage"
name: "voltronic_grid_voltage"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.grid_voltage }}"
unit_of_measurement: "V"
icon: "mdi:transmission-tower"
device_class: voltage
state_class: measurement
- unique_id: "voltronic_grid_frequency"
name: "voltronic_grid_frequency"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.grid_frequency | float }}"
unit_of_measurement: "Hz"
icon: "mdi:transmission-tower"
device_class: frequency
state_class: measurement
- unique_id: "voltronic_ac_output_voltage"
name: "voltronic_ac_output_voltage"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.ac_output_voltage }}"
unit_of_measurement: "V"
icon: "mdi:lightning-bolt"
device_class: voltage
state_class: measurement
- unique_id: "voltronic_ac_output_frequency"
name: "voltronic_ac_output_frequency"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.ac_output_frequency }}"
unit_of_measurement: "Hz"
icon: "mdi:current-ac"
device_class: frequency
state_class: measurement
- unique_id: "voltronic_ac_output_apparent_power"
name: "voltronic_ac_output_apparent_power"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.ac_output_apparent_power }}"
unit_of_measurement: "VA"
icon: "mdi:home-lightning-bolt"
device_class: apparent_power
state_class: measurement
- unique_id: "voltronic_ac_output_active_power"
name: "voltronic_ac_output_active_power"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.ac_output_active_power }}"
unit_of_measurement: "W"
icon: "mdi:home-lightning-bolt"
device_class: power
state_class: measurement
- unique_id: "voltronic_output_load_percent"
name: "voltronic_output_load_percent"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.output_load_percent }}"
unit_of_measurement: "%"
icon: "mdi:brightness-percent"
device_class: power_factor
state_class: measurement
- unique_id: "voltronic_battery_voltage"
name: "voltronic_battery_voltage"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.battery_voltage }}"
unit_of_measurement: "V"
icon: "mdi:lightning-bolt"
device_class: voltage
state_class: measurement
- unique_id: "voltronic_battery_charging_current"
name: "voltronic_battery_charging_current"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.battery_charging_current }}"
unit_of_measurement: "A"
icon: "mdi:current-dc"
device_class: current
state_class: measurement
- unique_id: "voltronic_battery_capacity"
name: "voltronic_battery_capacity"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.battery_capacity }}"
unit_of_measurement: "%"
icon: "mdi:battery-outline"
device_class: battery
state_class: measurement
- unique_id: "voltronic_pv_input_current"
name: "voltronic_pv_input_current"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.pv_input_current }}"
unit_of_measurement: "A"
icon: "mdi:current-dc"
device_class: current
state_class: measurement
- unique_id: "voltronic_pv_input_voltage"
name: "voltronic_pv_input_voltage"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.pv_input_voltage }}"
unit_of_measurement: "V"
icon: "mdi:solar-power"
device_class: voltage
state_class: measurement
- unique_id: "voltronic_battery_discharge_current"
name: "voltronic_battery_discharge_current"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.battery_discharge_current }}"
unit_of_measurement: "A"
icon: "mdi:current-dc"
device_class: current
state_class: measurement
- unique_id: "voltronic_pv_charging_power"
name: "voltronic_pv_charging_power"
state_topic: "homeassistant/sensor/voltronic/qpigs"
value_template: "{{ value_json.pv_charging_power }}"
unit_of_measurement: "W"
icon: "mdi:solar-power-variant"
device_class: power
state_class: measurement
select:
- unique_id: "voltronic_output_source_priority"
name: "voltronic_output_source_priority"
state_topic: "homeassistant/sensor/voltronic/qpiri"
value_template: >-
{% set options = ["Utility First", "Solar First", "SBU"] %}
0{{ value_json.output_source_priority }} ({{ options[value_json.output_source_priority] }})
command_topic: "homeassistant/sensor/voltronic/send_cmd"
command_template: POP{{ value[:2] }}
options:
- "00 (Utility First)"
- "01 (Solar First)"
- "02 (SBU)"