Home Assistant Unofficial Reference 2024.12.1
data.py
Go to the documentation of this file.
1 """Support for configurable supported data values for the ScreenLogic integration."""
2 
3 from screenlogicpy.const.data import DEVICE, VALUE
4 
5 ENTITY_MIGRATIONS = {
6  "chem_alarm": {
7  "new_key": VALUE.ACTIVE_ALERT,
8  "old_name": "Chemistry Alarm",
9  "new_name": "Active Alert",
10  },
11  "chem_calcium_harness": {
12  "new_key": VALUE.CALCIUM_HARDNESS,
13  },
14  "calcium_harness": {
15  "new_key": VALUE.CALCIUM_HARDNESS,
16  },
17  "chem_current_orp": {
18  "new_key": VALUE.ORP_NOW,
19  "old_name": "Current ORP",
20  "new_name": "ORP Now",
21  },
22  "chem_current_ph": {
23  "new_key": VALUE.PH_NOW,
24  "old_name": "Current pH",
25  "new_name": "pH Now",
26  },
27  "chem_cya": {
28  "new_key": VALUE.CYA,
29  },
30  "chem_orp_dosing_state": {
31  "new_key": VALUE.ORP_DOSING_STATE,
32  },
33  "chem_orp_last_dose_time": {
34  "new_key": VALUE.ORP_LAST_DOSE_TIME,
35  },
36  "chem_orp_last_dose_volume": {
37  "new_key": VALUE.ORP_LAST_DOSE_VOLUME,
38  },
39  "chem_orp_setpoint": {
40  "new_key": VALUE.ORP_SETPOINT,
41  },
42  "chem_orp_supply_level": {
43  "new_key": VALUE.ORP_SUPPLY_LEVEL,
44  },
45  "chem_ph_dosing_state": {
46  "new_key": VALUE.PH_DOSING_STATE,
47  },
48  "chem_ph_last_dose_time": {
49  "new_key": VALUE.PH_LAST_DOSE_TIME,
50  },
51  "chem_ph_last_dose_volume": {
52  "new_key": VALUE.PH_LAST_DOSE_VOLUME,
53  },
54  "chem_ph_probe_water_temp": {
55  "new_key": VALUE.PH_PROBE_WATER_TEMP,
56  },
57  "chem_ph_setpoint": {
58  "new_key": VALUE.PH_SETPOINT,
59  },
60  "chem_ph_supply_level": {
61  "new_key": VALUE.PH_SUPPLY_LEVEL,
62  },
63  "chem_salt_tds_ppm": {
64  "new_key": VALUE.SALT_TDS_PPM,
65  },
66  "chem_total_alkalinity": {
67  "new_key": VALUE.TOTAL_ALKALINITY,
68  },
69  "currentGPM": {
70  "new_key": VALUE.GPM_NOW,
71  "old_name": "Current GPM",
72  "new_name": "GPM Now",
73  "device": DEVICE.PUMP,
74  },
75  "currentRPM": {
76  "new_key": VALUE.RPM_NOW,
77  "old_name": "Current RPM",
78  "new_name": "RPM Now",
79  "device": DEVICE.PUMP,
80  },
81  "currentWatts": {
82  "new_key": VALUE.WATTS_NOW,
83  "old_name": "Current Watts",
84  "new_name": "Watts Now",
85  "device": DEVICE.PUMP,
86  },
87  "orp_alarm": {
88  "new_key": VALUE.ORP_LOW_ALARM,
89  "old_name": "ORP Alarm",
90  "new_name": "ORP LOW Alarm",
91  },
92  "ph_alarm": {
93  "new_key": VALUE.PH_HIGH_ALARM,
94  "old_name": "pH Alarm",
95  "new_name": "pH HIGH Alarm",
96  },
97  "scg_status": {
98  "new_key": VALUE.STATE,
99  "old_name": "SCG Status",
100  "new_name": "Chlorinator",
101  "device": DEVICE.SCG,
102  },
103  "scg_level1": {
104  "new_key": VALUE.POOL_SETPOINT,
105  "old_name": "Pool SCG Level",
106  "new_name": "Pool Chlorinator Setpoint",
107  },
108  "scg_level2": {
109  "new_key": VALUE.SPA_SETPOINT,
110  "old_name": "Spa SCG Level",
111  "new_name": "Spa Chlorinator Setpoint",
112  },
113  "scg_salt_ppm": {
114  "new_key": VALUE.SALT_PPM,
115  "old_name": "SCG Salt",
116  "new_name": "Chlorinator Salt",
117  "device": DEVICE.SCG,
118  },
119  "scg_super_chlor_timer": {
120  "new_key": VALUE.SUPER_CHLOR_TIMER,
121  "old_name": "SCG Super Chlorination Timer",
122  "new_name": "Super Chlorination Timer",
123  },
124 }