Skip to content

Commit ecc5d05

Browse files
committed
Update test-jsons
1 parent fb41760 commit ecc5d05

File tree

7 files changed

+205
-71
lines changed

7 files changed

+205
-71
lines changed

tests/data/anna/anna_elga_2.json

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,54 @@
2929
},
3030
"vendor": "Techneco"
3131
},
32-
"ebd90df1ab334565b5895f37590ccff4": {
32+
"d3ce834534114348be628b61b26d9220": {
3333
"active_preset": "home",
34-
"available_schedules": ["Thermostat schedule", "off"],
34+
"available_schedules": [
35+
"Thermostat schedule",
36+
"off"
37+
],
3538
"climate_mode": "auto",
36-
"control_state": "heating",
39+
"control_state": "idle",
40+
"dev_class": "climate",
41+
"model": "ThermoZone",
42+
"name": "Living room",
43+
"preset_modes": [
44+
"away",
45+
"no_frost",
46+
"vacation",
47+
"home",
48+
"asleep"
49+
],
50+
"select_schedule": "Thermostat schedule",
51+
"sensors": {
52+
"temperature": 19.2
53+
},
54+
"thermostat": {
55+
"lower_bound": 4.0,
56+
"resolution": 0.1,
57+
"setpoint": 19.5,
58+
"upper_bound": 30.0
59+
},
60+
"thermostats": {
61+
"primary": [
62+
"ebd90df1ab334565b5895f37590ccff4"
63+
],
64+
"secondary": []
65+
},
66+
"vendor": "Plugwise"
67+
},
68+
"ebd90df1ab334565b5895f37590ccff4": {
3769
"dev_class": "thermostat",
3870
"firmware": "2018-02-08T11:15:53+01:00",
3971
"hardware": "6539-1301-5002",
4072
"location": "d3ce834534114348be628b61b26d9220",
4173
"model": "ThermoTouch",
4274
"name": "Anna",
43-
"preset_modes": ["away", "no_frost", "vacation", "home", "asleep"],
44-
"select_schedule": "Thermostat schedule",
4575
"sensors": {
4676
"cooling_activation_outdoor_temperature": 24.0,
4777
"cooling_deactivation_threshold": 2.0,
4878
"illuminance": 0.5,
49-
"setpoint_high": 30.0,
50-
"setpoint_low": 19.5,
79+
"setpoint": 19.5,
5180
"temperature": 19.2
5281
},
5382
"temperature_offset": {
@@ -56,13 +85,6 @@
5685
"setpoint": 0.0,
5786
"upper_bound": 2.0
5887
},
59-
"thermostat": {
60-
"lower_bound": 4.0,
61-
"resolution": 0.1,
62-
"setpoint_high": 30.0,
63-
"setpoint_low": 19.5,
64-
"upper_bound": 30.0
65-
},
6688
"vendor": "Plugwise"
6789
},
6890
"fb49af122f6e4b0f91267e1cf7666d6f": {

tests/data/anna/anna_elga_2_schedule_off.json

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,54 @@
3535
},
3636
"vendor": "Techneco"
3737
},
38-
"ebd90df1ab334565b5895f37590ccff4": {
38+
"d3ce834534114348be628b61b26d9220": {
3939
"active_preset": "home",
40-
"available_schedules": ["Thermostat schedule", "off"],
40+
"available_schedules": [
41+
"Thermostat schedule",
42+
"off"
43+
],
4144
"climate_mode": "heat_cool",
4245
"control_state": "idle",
46+
"dev_class": "climate",
47+
"model": "ThermoZone",
48+
"name": "Living room",
49+
"preset_modes": [
50+
"away",
51+
"no_frost",
52+
"vacation",
53+
"home",
54+
"asleep"
55+
],
56+
"select_schedule": "off",
57+
"sensors": {
58+
"temperature": 20.9
59+
},
60+
"thermostat": {
61+
"lower_bound": 4.0,
62+
"resolution": 0.1,
63+
"setpoint": 19.5,
64+
"upper_bound": 30.0
65+
},
66+
"thermostats": {
67+
"primary": [
68+
"ebd90df1ab334565b5895f37590ccff4"
69+
],
70+
"secondary": []
71+
},
72+
"vendor": "Plugwise"
73+
},
74+
"ebd90df1ab334565b5895f37590ccff4": {
4375
"dev_class": "thermostat",
4476
"firmware": "2018-02-08T11:15:53+01:00",
4577
"hardware": "6539-1301-5002",
4678
"location": "d3ce834534114348be628b61b26d9220",
4779
"model": "ThermoTouch",
4880
"name": "Anna",
49-
"preset_modes": ["away", "no_frost", "vacation", "home", "asleep"],
50-
"select_schedule": "off",
5181
"sensors": {
5282
"cooling_activation_outdoor_temperature": 26.0,
5383
"cooling_deactivation_threshold": 3.0,
5484
"illuminance": 0.5,
55-
"setpoint_high": 30.0,
56-
"setpoint_low": 19.5,
85+
"setpoint": 19.5,
5786
"temperature": 20.9
5887
},
5988
"temperature_offset": {
@@ -62,13 +91,6 @@
6291
"setpoint": 0.0,
6392
"upper_bound": 2.0
6493
},
65-
"thermostat": {
66-
"lower_bound": 4.0,
67-
"resolution": 0.1,
68-
"setpoint_high": 30.0,
69-
"setpoint_low": 19.5,
70-
"upper_bound": 30.0
71-
},
7294
"vendor": "Plugwise"
7395
},
7496
"fb49af122f6e4b0f91267e1cf7666d6f": {

tests/data/anna/anna_elga_no_cooling.json

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,12 @@
5858
"vendor": "Techneco"
5959
},
6060
"3cb70739631c4d17a86b8b12e8a5161b": {
61-
"active_preset": "home",
62-
"available_schedules": ["standaard", "off"],
63-
"climate_mode": "auto",
64-
"control_state": "heating",
6561
"dev_class": "thermostat",
6662
"firmware": "2018-02-08T11:15:53+01:00",
6763
"hardware": "6539-1301-5002",
6864
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
6965
"model": "ThermoTouch",
7066
"name": "Anna",
71-
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
72-
"select_schedule": "standaard",
7367
"sensors": {
7468
"cooling_activation_outdoor_temperature": 21.0,
7569
"cooling_deactivation_threshold": 4.0,
@@ -83,12 +77,42 @@
8377
"setpoint": -0.5,
8478
"upper_bound": 2.0
8579
},
80+
"vendor": "Plugwise"
81+
},
82+
"c784ee9fdab44e1395b8dee7d7a497d5": {
83+
"active_preset": "home",
84+
"available_schedules": [
85+
"standaard",
86+
"off"
87+
],
88+
"climate_mode": "auto",
89+
"control_state": "idle",
90+
"dev_class": "climate",
91+
"model": "ThermoZone",
92+
"name": "Living room",
93+
"preset_modes": [
94+
"no_frost",
95+
"home",
96+
"away",
97+
"asleep",
98+
"vacation"
99+
],
100+
"select_schedule": "standaard",
101+
"sensors": {
102+
"temperature": 19.3
103+
},
86104
"thermostat": {
87105
"lower_bound": 4.0,
88106
"resolution": 0.1,
89107
"setpoint": 20.5,
90108
"upper_bound": 30.0
91109
},
110+
"thermostats": {
111+
"primary": [
112+
"3cb70739631c4d17a86b8b12e8a5161b"
113+
],
114+
"secondary": []
115+
},
92116
"vendor": "Plugwise"
93117
}
94118
}

tests/data/anna/anna_heatpump_cooling.json

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,17 @@
5555
"vendor": "Techneco"
5656
},
5757
"3cb70739631c4d17a86b8b12e8a5161b": {
58-
"active_preset": "home",
59-
"available_schedules": ["standaard", "off"],
60-
"climate_mode": "heat_cool",
61-
"control_state": "cooling",
6258
"dev_class": "thermostat",
6359
"firmware": "2018-02-08T11:15:53+01:00",
6460
"hardware": "6539-1301-5002",
6561
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
6662
"model": "ThermoTouch",
6763
"name": "Anna",
68-
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
69-
"select_schedule": "off",
7064
"sensors": {
7165
"cooling_activation_outdoor_temperature": 21.0,
7266
"cooling_deactivation_threshold": 6.0,
7367
"illuminance": 24.5,
74-
"setpoint_high": 22.0,
75-
"setpoint_low": 4.0,
68+
"setpoint": 22.0,
7669
"temperature": 22.3
7770
},
7871
"temperature_offset": {
@@ -81,13 +74,42 @@
8174
"setpoint": -0.5,
8275
"upper_bound": 2.0
8376
},
77+
"vendor": "Plugwise"
78+
},
79+
"c784ee9fdab44e1395b8dee7d7a497d5": {
80+
"active_preset": "home",
81+
"available_schedules": [
82+
"standaard",
83+
"off"
84+
],
85+
"climate_mode": "heat_cool",
86+
"control_state": "idle",
87+
"dev_class": "climate",
88+
"model": "ThermoZone",
89+
"name": "Living room",
90+
"preset_modes": [
91+
"no_frost",
92+
"home",
93+
"away",
94+
"asleep",
95+
"vacation"
96+
],
97+
"select_schedule": "off",
98+
"sensors": {
99+
"temperature": 22.3
100+
},
84101
"thermostat": {
85102
"lower_bound": 4.0,
86103
"resolution": 0.1,
87-
"setpoint_high": 22.0,
88-
"setpoint_low": 4.0,
104+
"setpoint": 22.0,
89105
"upper_bound": 30.0
90106
},
107+
"thermostats": {
108+
"primary": [
109+
"3cb70739631c4d17a86b8b12e8a5161b"
110+
],
111+
"secondary": []
112+
},
91113
"vendor": "Plugwise"
92114
}
93115
}

tests/data/anna/anna_heatpump_cooling_fake_firmware.json

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,17 @@
5555
"vendor": "Techneco"
5656
},
5757
"3cb70739631c4d17a86b8b12e8a5161b": {
58-
"active_preset": "home",
59-
"available_schedules": ["standaard", "off"],
60-
"climate_mode": "heat_cool",
61-
"control_state": "cooling",
6258
"dev_class": "thermostat",
6359
"firmware": "2018-02-08T11:15:53+01:00",
6460
"hardware": "6539-1301-5002",
6561
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
6662
"model": "ThermoTouch",
6763
"name": "Anna",
68-
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
69-
"select_schedule": "off",
7064
"sensors": {
7165
"cooling_activation_outdoor_temperature": 21.0,
7266
"cooling_deactivation_threshold": 6.0,
7367
"illuminance": 24.5,
74-
"setpoint_high": 22.0,
75-
"setpoint_low": 4.0,
68+
"setpoint": 22.0,
7669
"temperature": 22.3
7770
},
7871
"temperature_offset": {
@@ -81,13 +74,42 @@
8174
"setpoint": -0.5,
8275
"upper_bound": 2.0
8376
},
77+
"vendor": "Plugwise"
78+
},
79+
"c784ee9fdab44e1395b8dee7d7a497d5": {
80+
"active_preset": "home",
81+
"available_schedules": [
82+
"standaard",
83+
"off"
84+
],
85+
"climate_mode": "heat_cool",
86+
"control_state": "idle",
87+
"dev_class": "climate",
88+
"model": "ThermoZone",
89+
"name": "Living room",
90+
"preset_modes": [
91+
"no_frost",
92+
"home",
93+
"away",
94+
"asleep",
95+
"vacation"
96+
],
97+
"select_schedule": "off",
98+
"sensors": {
99+
"temperature": 22.3
100+
},
84101
"thermostat": {
85102
"lower_bound": 4.0,
86103
"resolution": 0.1,
87-
"setpoint_high": 22.0,
88-
"setpoint_low": 4.0,
104+
"setpoint": 22.0,
89105
"upper_bound": 30.0
90106
},
107+
"thermostats": {
108+
"primary": [
109+
"3cb70739631c4d17a86b8b12e8a5161b"
110+
],
111+
"secondary": []
112+
},
91113
"vendor": "Plugwise"
92114
}
93115
}

0 commit comments

Comments
 (0)