Skip to content

Commit 3952139

Browse files
committed
Add elga_outdoor asserts
1 parent f046e9a commit 3952139

File tree

1 file changed

+59
-11
lines changed

1 file changed

+59
-11
lines changed

tests/test_smile.py

Lines changed: 59 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,32 +2212,80 @@ async def test_connect_anna_elga_outdoor_temp(self):
22122212
"""Test a Anna with Elga setup in cooling mode with missing outdoor temperature."""
22132213
testdata = {
22142214
# Anna
2215-
"3cb70739631c4d17a86b8b12e8a5161b": {
2216-
"selected_schedule": "None",
2215+
"ebd90df1ab334565b5895f37590ccff4": {
2216+
"class": "thermostat",
2217+
"fw": "2018-02-08T11:15:53+01:00",
2218+
"hw": "6539-1301-5002",
2219+
"location": "d3ce834534114348be628b61b26d9220",
2220+
"mac_address": None,
2221+
"model": "Anna",
2222+
"name": "Anna",
2223+
"vendor": "Plugwise",
2224+
"lower_bound": 4,
2225+
"upper_bound": 30,
2226+
"resolution": 0.1,
2227+
"preset_modes": ["away", "no_frost", "vacation", "home", "asleep"],
22172228
"active_preset": "home",
2218-
"mode": "cool",
2229+
"presets": {
2230+
"away": [15.0, 25.0],
2231+
"no_frost": [10.0, 30.0],
2232+
"vacation": [15.0, 27.0],
2233+
"home": [19.5, 23.0],
2234+
"asleep": [19.0, 23.0],
2235+
},
2236+
"available_schedules": ["Thermostat schedule"],
2237+
"selected_schedule": "Thermostat schedule",
2238+
"last_used": "Thermostat schedule",
2239+
"schedule_temperature": 19.5,
2240+
"mode": "auto",
22192241
"sensors": {
2220-
"illuminance": 25.5,
2221-
"cooling_activation_outdoor_temperature": 21.0,
2222-
"cooling_deactivation_threshold": 6,
2242+
"temperature": 20.9,
2243+
"setpoint": 19.5,
2244+
"illuminance": 0.5,
2245+
"cooling_activation_outdoor_temperature": 26.0,
2246+
"cooling_deactivation_threshold": 3,
22232247
},
22242248
},
22252249
# Heater central
22262250
"573c152e7d4f4720878222bd75638f5b": {
2251+
"class": "heater_central",
2252+
"fw": None,
2253+
"hw": None,
2254+
"location": "d34dfe6ab90b410c98068e75de3eb631",
2255+
"mac_address": None,
2256+
"model": "Generic heater",
2257+
"name": "OpenTherm",
2258+
"vendor": "Techneco",
2259+
"compressor_state": False,
22272260
"binary_sensors": {
2228-
"cooling_state": True,
22292261
"dhw_state": False,
22302262
"heating_state": False,
2263+
"cooling_state": False,
2264+
"slave_boiler_state": False,
2265+
"flame_state": False,
22312266
},
22322267
"sensors": {
22332268
"outdoor_temperature": 14.0,
2234-
"water_temperature": 23.39,
2235-
"water_pressure": 1.61,
2269+
"water_temperature": 22.8,
2270+
"intended_boiler_temperature": 0.0,
2271+
"modulation_level": 0.0,
2272+
"return_temperature": 23.4,
2273+
"water_pressure": 0.5,
22362274
},
2275+
"switches": {"dhw_cm_switch": True},
22372276
},
22382277
# Gateway
2239-
"c53888603af34264bbed2a05998ee572": {
2240-
"sensors": {"outdoor_temperature": 14.0}
2278+
"fb49af122f6e4b0f91267e1cf7666d6f": {
2279+
"class": "gateway",
2280+
"fw": "4.2.1",
2281+
"hw": "AME Smile 2.0 board",
2282+
"location": "d34dfe6ab90b410c98068e75de3eb631",
2283+
"mac_address": "C4930002FE76",
2284+
"model": "Anna",
2285+
"name": "Anna",
2286+
"vendor": "Plugwise B.V.",
2287+
"binary_sensors": {"plugwise_notification": False},
2288+
"sensors": {"outdoor_temperature": 13.0},
22412289
},
22422290
}
22432291

0 commit comments

Comments
 (0)