-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui_config.py
More file actions
107 lines (103 loc) · 3.21 KB
/
Copy pathui_config.py
File metadata and controls
107 lines (103 loc) · 3.21 KB
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
"""
UI Configuration for Inverter Control
Default configuration for dashboard UI elements
"""
import logging
logger = logging.getLogger("inverter-control")
def get_ui_config() -> dict:
"""Get UI configuration"""
return {
"header_toggles": [
{
"id": "only_charging",
"label": "ONLY CHARGING",
"entity": "input_boolean.only_charging",
},
{"id": "no_feed", "label": "NO FEED", "entity": "input_boolean.no_feed"},
{
"id": "house_support",
"label": "HOUSE SUPPORT",
"entity": "input_boolean.house_support",
},
{
"id": "charge_battery",
"label": "CHARGE BATTERY",
"entity": "input_boolean.charge_battery",
},
{
"id": "do_not_supply_charger",
"label": "DO NOT SUPPLY EV",
"entity": "input_boolean.do_not_supply_charger",
},
{
"id": "set_limit_to_ev_charger",
"label": "LIMIT TO EV",
"entity": "input_boolean.set_limit_to_ev_charger",
},
{
"id": "minimize_charging",
"label": "MINIMIZE CHARGING",
"entity": "input_boolean.minimize_charging",
},
],
"home_buttons": [
{
"id": "recliner",
"label": "RECLINER",
"entity": "switch.recliner_recliner",
"state_key": "home_recliner",
},
{
"id": "garage",
"label": "GARAGE",
"entity": "switch.garage_opener_l",
"state_key": "home_garage",
},
{
"id": "laundry",
"label": "LAUNDRY",
"entity": "switch.laundry_zigbee_switch",
"state_key": "laundry_outlet",
},
],
"batteries": [
{
"id": "chain1",
"name": "JBD Chain 1",
"show_current": True,
"show_power": True,
},
{
"id": "chain2",
"name": "JBD Chain 2",
"show_current": True,
"show_power": True,
},
{
"id": "virtual",
"name": "Virtual Battery",
"show_current": True,
"show_power": True,
},
],
"solar_sources": {
"mppt_names": {0: "MPPT-290", 1: "MPPT-291", 2: "MPPT-292"},
"pv_inverters": [
{"id": "pv1", "name": "PV Inverter 1", "index": 0},
{"id": "pv2", "name": "PV Inverter 2", "index": 1},
],
},
"loads": {
"hidden": ["solar_shed"],
"min_watts": 10,
},
"water": {
"valve_entity": "switch.shutoff_valve",
"pump_entity": "switch.pump_switch",
},
"ev": {
"charging_sensor": "ev_charging_power",
"power_sensor": "ev_charger",
"soc_sensor": "car_soc",
},
}