@@ -72,15 +72,9 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
7272# Remove device "67d73d0bd469422db25a618a5fb8eeb0" from anywhere
7373m_adam_cooling ["devices" ].pop ("67d73d0bd469422db25a618a5fb8eeb0" )
7474
75- # Remove setpoint for "ad4838d7d35c4d6ea796ee12ae5aedf8" and inject low and high
76- m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["thermostat" ].pop (
77- "setpoint"
78- )
79- m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["thermostat" ][
80- "setpoint_low"
81- ] = 4.0
75+ # Correct setpoint for "ad4838d7d35c4d6ea796ee12ae5aedf8"
8276m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["thermostat" ][
83- "setpoint_high "
77+ "setpoint "
8478] = 23.5
8579
8680# Add new key available
@@ -99,15 +93,11 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
9993m_adam_cooling ["devices" ].pop ("29542b2b6a6a4169acecc15c72a599b8" )
10094
10195# Back at ad48
102- m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ].pop ("setpoint" )
10396m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ][
10497 "temperature"
10598] = 25.8
10699m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ][
107- "setpoint_low"
108- ] = 4.0
109- m_adam_cooling ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ][
110- "setpoint_high"
100+ "setpoint"
111101] = 23.5
112102
113103# (again, following diff)
@@ -123,30 +113,16 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
123113] = 21.6
124114
125115# Go for e2f4
126- m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["thermostat" ].pop (
127- "setpoint"
128- )
129116m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["thermostat" ][
130- "setpoint_low"
131- ] = 19.0
132- m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["thermostat" ][
133- "setpoint_high"
117+ "setpoint"
134118] = 25.0
135-
136- m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ].pop ("setpoint" )
137119m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ][
138120 "temperature"
139- ] = 239
140- # didn't change
141- # m_adam_cooling["devices"]["e2f4322d57924fa090fbbc48b3a140dc"]["sensors"]["battery"] = 56
142- m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ][
143- "setpoint_low"
144- ] = 20.0
121+ ] = 23.9
145122m_adam_cooling ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ][
146- "setpoint_high "
123+ "setpoint "
147124] = 23.5
148125
149-
150126# Go for da22
151127m_adam_cooling ["devices" ]["da224107914542988a88561b4452b0f6" ][
152128 "select_regulation_mode"
@@ -181,16 +157,10 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
181157# Set cooling_present to true
182158m_adam_cooling ["gateway" ]["cooling_present" ] = False
183159
184- # Remove setpoint for "ad4838d7d35c4d6ea796ee12ae5aedf8" and inject low and high
160+ # Correct setpoint for "ad4838d7d35c4d6ea796ee12ae5aedf8"
185161m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["thermostat" ][
186162 "setpoint"
187163] = 20.0
188- m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["thermostat" ].pop (
189- "setpoint_low"
190- )
191- m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["thermostat" ].pop (
192- "setpoint_high"
193- )
194164
195165m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ][
196166 "control_state"
@@ -204,12 +174,6 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
204174m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ][
205175 "temperature"
206176] = 19.1
207- m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ].pop (
208- "setpoint_low"
209- )
210- m_adam_heating ["devices" ]["ad4838d7d35c4d6ea796ee12ae5aedf8" ]["sensors" ].pop (
211- "setpoint_high"
212- )
213177
214178# Go for 1772
215179m_adam_heating ["devices" ]["1772a4ea304041adb83f357b751341ff" ]["sensors" ][
@@ -220,27 +184,13 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
220184m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["thermostat" ][
221185 "setpoint"
222186] = 15.0
223- m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["thermostat" ].pop (
224- "setpoint_low"
225- )
226- m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["thermostat" ].pop (
227- "setpoint_high"
228- )
229187
230188m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ][
231189 "setpoint"
232190] = 15.0
233191m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ][
234192 "temperature"
235193] = 17.9
236- # m_adam_heating["devices"]["e2f4322d57924fa090fbbc48b3a140dc"]["sensors"]["battery"] = 56
237- m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ].pop (
238- "setpoint_low"
239- )
240- m_adam_heating ["devices" ]["e2f4322d57924fa090fbbc48b3a140dc" ]["sensors" ].pop (
241- "setpoint_high"
242- )
243-
244194
245195# Go for da22
246196m_adam_heating ["devices" ]["da224107914542988a88561b4452b0f6" ][
0 commit comments