File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed
custom_components/apsystems_ecu_proxy Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 44
55DOMAIN = "apsystems_ecu_proxy"
66
7- # Max age of message (in seconds) to process
8- MESSAGE_IGNORE_AGE = 1800
9-
10- # Max summation stub time to add for new period - see code in summation_calculation method in
11- # sensor.py. Added if no messages recieved for sometime due to inverter shutdown.
12- MAX_STUB_INTERVAL = 300
13-
14- # Timeout to set value of no_update_value to sensors if no update received
15- NO_UPDATE_TIMEOUT = 600
16-
17- # Used to prevent sending data to EMA for testing purposes. Set to false during testing.
18- SEND_TO_EMA = True
19-
207ATTR_TIMESTAMP = "timestamp"
218ATTR_VALUE_IF_NO_UPDATE = "value_if_no_update"
229ATTR_SUMMATION_PERIOD = "summation_period"
3623DCVOLTAGE_ICON = "mdi:current-dc"
3724POWER_ICON = "mdi:power"
3825
26+ # Constants for data
3927SOCKET_PORTS = [8995 , 8996 , 8997 ]
4028EMA_HOST = "3.67.1.32"
29+ # Max age of message (in seconds) to process
30+ MESSAGE_IGNORE_AGE = 1800
31+ # Max summation stub time to add for new period - see code in summation_calculation method in
32+ # sensor.py. Added if no messages recieved for sometime due to inverter shutdown.
33+ MAX_STUB_INTERVAL = 300
34+ # Timeout to set value of no_update_value to sensors if no update received
35+ NO_UPDATE_TIMEOUT = 600
36+ # Used to prevent sending data to EMA for testing purposes. Set to false during testing.
37+ SEND_TO_EMA = True
38+
39+ #Constants for config flow
40+ KEYS = [
41+ "ema_host" ,
42+ "message_ignore_age" ,
43+ "max_stub_interval" ,
44+ "no_update_timeout" ,
45+ "send_to_ema"
46+ ]
4147
4248
4349class SummationPeriod (StrEnum ):
You can’t perform that action at this time.
0 commit comments