Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .coverage
Binary file not shown.
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ pytest-coverage
pylint_strict_informational
flake8-black
black
jsonpickle
15 changes: 8 additions & 7 deletions tests/test_Smile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

# Fixture writing
import io
import pickle
import os

import jsonpickle as json

from Plugwise_Smile.Smile import Smile

pp = PrettyPrinter(indent=8)
Expand All @@ -29,17 +30,17 @@
class TestPlugwise:
"""Tests for Plugwise Smile."""

def _write_pickle(self, call, data):
def _write_json(self, call, data):
"""Store JSON data to per-setup files for HA component testing."""
path = os.path.join(os.path.dirname(__file__), "testdata/" + self.smile_setup)
datafile = os.path.join(path, call + ".pickle")
datafile = os.path.join(path, call + ".json")
if not os.path.exists(path):
os.mkdir(path)
if not os.path.exists(os.path.dirname(datafile)):
os.mkdir(os.path.dirname(datafile))

with open(datafile, "wb") as fixture_file:
pickle.dump(data, fixture_file)
with open(datafile, "w") as fixture_file:
fixture_file.write(json.encode(data))

async def setup_app(
self, broken=False, timeout=False, put_timeout=False,
Expand Down Expand Up @@ -243,7 +244,7 @@ async def device_test(self, smile=Smile, testdata=None):
"""Perform basic device tests."""
_LOGGER.info("Asserting testdata:")
device_list = smile.get_all_devices()
self._write_pickle("get_all_devices", device_list)
self._write_json("get_all_devices", device_list)

location_list, dummy = smile.scan_thermostats()

Expand All @@ -255,7 +256,7 @@ async def device_test(self, smile=Smile, testdata=None):
_LOGGER.debug("Device list:\n%s", pp4.pformat(device_list))
for dev_id, details in device_list.items():
data = smile.get_device_data(dev_id)
self._write_pickle("get_device_data/" + dev_id, data)
self._write_json("get_device_data/" + dev_id, data)
_LOGGER.debug(
"%s",
"Device {} id:{}\nDetails: {}\nData: {}".format(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"df4a4a8169904cdb9c03d61a21f42140": {"name": "Zone Lisa Bios", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "12493538af164a409c6a1c79e38afe1c"}, "b310b72a0e354bfab43089919b9a88bf": {"name": "Floor kraan", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "c50f167537524366a5af7aa3942feb1e"}, "a2c3583e0a6349358998b760cea82d2a": {"name": "Bios Cv Thermostatic Radiator ", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "12493538af164a409c6a1c79e38afe1c"}, "b59bcebaf94b499ea7d46e4a66fb62d8": {"name": "Zone Lisa WK", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "c50f167537524366a5af7aa3942feb1e"}, "fe799307f1624099878210aa0b9f1475": {"name": "Adam", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "gateway", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d"}, "d3da73bde12a47d5a6b8f9dad971f2ec": {"name": "Thermostatic Radiator Jessie", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "82fa13f017d240daa0d0ea1775420f24"}, "21f2b542c49845e6bb416884c55778d6": {"name": "Playstation Smart Plug", "types": {"py/set": ["plug", "power"]}, "class": "game_console", "location": "cd143c07248f491493cea0533bc3d669"}, "78d1126fc4c743db81b61c20e88342a7": {"name": "CV Pomp", "types": {"py/set": ["plug", "power"]}, "class": "central_heating_pump", "location": "c50f167537524366a5af7aa3942feb1e"}, "90986d591dcd426cae3ec3e8111ff730": {"name": "Adam", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "heater_central", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d"}, "cd0ddb54ef694e11ac18ed1cbce5dbbd": {"name": "NAS", "types": {"py/set": ["plug", "power"]}, "class": "vcr", "location": "cd143c07248f491493cea0533bc3d669"}, "4a810418d5394b3f82727340b91ba740": {"name": "USG Smart Plug", "types": {"py/set": ["plug", "power"]}, "class": "router", "location": "cd143c07248f491493cea0533bc3d669"}, "02cf28bfec924855854c544690a609ef": {"name": "NVR", "types": {"py/set": ["plug", "power"]}, "class": "vcr", "location": "cd143c07248f491493cea0533bc3d669"}, "a28f588dc4a049a483fd03a30361ad3a": {"name": "Fibaro HC2", "types": {"py/set": ["plug", "power"]}, "class": "settop", "location": "cd143c07248f491493cea0533bc3d669"}, "6a3bf693d05e48e0b460c815a4fdd09d": {"name": "Zone Thermostat Jessie", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "82fa13f017d240daa0d0ea1775420f24"}, "680423ff840043738f42cc7f1ff97a36": {"name": "Thermostatic Radiator Badkamer", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "08963fec7c53423ca5680aa4cb502c63"}, "f1fee6043d3642a9b0a65297455f008e": {"name": "Zone Thermostat Badkamer", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "08963fec7c53423ca5680aa4cb502c63"}, "675416a629f343c495449970e2ca37b5": {"name": "Ziggo Modem", "types": {"py/set": ["plug", "power"]}, "class": "router", "location": "cd143c07248f491493cea0533bc3d669"}, "e7693eb9582644e5b865dba8d4447cf1": {"name": "CV Kraan Garage", "types": {"py/set": ["thermostat"]}, "class": "thermostatic_radiator_valve", "location": "446ac08dd04d4eff8ac57489757b7314"}}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 34.0, "electricity_consumed_interval": 9.15, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 82.6, "electricity_consumed_interval": 8.6, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 8.5, "electricity_consumed_interval": 0.0, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 12.2, "electricity_consumed_interval": 2.97, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 14.0, "temperature": 19.1, "battery": 0.51, "valve_position": 0.0, "temperature_difference": -0.4}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 15.0, "temperature": 17.2, "battery": 0.37, "active_preset": "asleep", "presets": {"home": [20.0, 22.0], "no_frost": [10.0, 30.0], "away": [12.0, 25.0], "vacation": [11.0, 28.0], "asleep": [16.0, 24.0]}, "schedule_temperature": 15.0, "available_schedules": ["CV Jessie"], "selected_schedule": "CV Jessie", "last_used": "CV Jessie"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 35.6, "electricity_consumed_interval": 7.37, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"water_temperature": 70.0, "intended_boiler_temperature": 70.0, "modulation_level": 0.01}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 12.5, "electricity_consumed_interval": 3.8, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 13.0, "temperature": 17.2, "battery": 0.62, "valve_position": 0.0, "temperature_difference": -0.2}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 21.5, "temperature": 26.0, "valve_position": 1.0, "temperature_difference": 3.5}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 21.5, "temperature": 20.9, "battery": 0.34, "active_preset": "home", "presets": {"vacation": [15.0, 28.0], "asleep": [18.0, 24.0], "no_frost": [12.0, 30.0], "away": [17.0, 25.0], "home": [21.5, 22.0]}, "schedule_temperature": 21.5, "available_schedules": ["GF7 Woonkamer"], "selected_schedule": "GF7 Woonkamer", "last_used": "GF7 Woonkamer"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 16.5, "electricity_consumed_interval": 0.5, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 15.0, "temperature": 17.1, "battery": 0.62, "valve_position": 0.0, "temperature_difference": 0.1}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 13.0, "temperature": 16.5, "battery": 0.67, "active_preset": "away", "presets": {"home": [20.0, 22.0], "away": [12.0, 25.0], "vacation": [12.0, 28.0], "no_frost": [8.0, 30.0], "asleep": [15.0, 24.0]}, "schedule_temperature": null, "available_schedules": [], "selected_schedule": null, "last_used": null}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 5.5, "temperature": 15.6, "battery": 0.68, "valve_position": 0.0, "temperature_difference": 0.0, "active_preset": "no_frost", "presets": {"home": [20.0, 22.0], "asleep": [17.0, 24.0], "away": [15.0, 25.0], "vacation": [15.0, 28.0], "no_frost": [10.0, 30.0]}, "schedule_temperature": null, "available_schedules": [], "selected_schedule": null, "last_used": null}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 14.0, "temperature": 18.9, "battery": 0.92, "active_preset": "away", "presets": {"asleep": [17.0, 24.0], "no_frost": [10.0, 30.0], "away": [14.0, 25.0], "home": [21.0, 22.0], "vacation": [12.0, 28.0]}, "schedule_temperature": 14.0, "available_schedules": ["Badkamer Schema"], "selected_schedule": "Badkamer Schema", "last_used": "Badkamer Schema"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"outdoor_temperature": 7.81}
Binary file not shown.
1 change: 1 addition & 0 deletions tests/testdata/adam_plus_anna/get_all_devices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"2743216f626f43948deec1f7ab3b3d70": {"name": "Adam", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "heater_central", "location": "07d618f0bb80412687f065b8698ce3e7"}, "aa6b0002df0a46e1b1eb94beb61eddfe": {"name": "MediaCenter", "types": {"py/set": ["plug", "power"]}, "class": "hometheater", "location": "45d410adf8fd461e85cebf16d5ead542"}, "b128b4bbbd1f47e9bf4d756e8fb5ee94": {"name": "Adam", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "gateway", "location": "07d618f0bb80412687f065b8698ce3e7"}, "ee62cad889f94e8ca3d09021f03a660b": {"name": "Anna", "types": {"py/set": ["thermostat"]}, "class": "thermostat", "location": "009490cc2f674ce6b576863fbb64f867"}, "f2be121e4a9345ac83c6e99ed89a98be": {"name": "Work-PC", "types": {"py/set": ["plug", "power"]}, "class": "computer_desktop", "location": "5ccb6c41a7d9403988d261ceee04239f"}}
Binary file removed tests/testdata/adam_plus_anna/get_all_devices.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"heating_state": false, "dhw_state": false, "water_temperature": 47.0, "intended_boiler_temperature": 0.0, "flame_state": false}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 10.3, "electricity_consumed_interval": 0.0, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"outdoor_temperature": 11.9}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 20.5, "temperature": 20.5, "active_preset": "home", "presets": {"home": [20.0, 22.0], "asleep": [17.0, 24.0], "away": [15.0, 25.0], "vacation": [15.0, 28.0], "no_frost": [10.0, 30.0]}, "schedule_temperature": 20.0, "available_schedules": ["Weekschema"], "selected_schedule": "Weekschema", "last_used": "Weekschema"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 79.8, "electricity_consumed_interval": 7.03, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
1 change: 1 addition & 0 deletions tests/testdata/adam_zone_per_device/get_all_devices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"df4a4a8169904cdb9c03d61a21f42140": {"name": "Zone Lisa Bios", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "12493538af164a409c6a1c79e38afe1c"}, "b310b72a0e354bfab43089919b9a88bf": {"name": "Floor kraan", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "c50f167537524366a5af7aa3942feb1e"}, "a2c3583e0a6349358998b760cea82d2a": {"name": "Bios Cv Thermostatic Radiator ", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "12493538af164a409c6a1c79e38afe1c"}, "b59bcebaf94b499ea7d46e4a66fb62d8": {"name": "Zone Lisa WK", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "c50f167537524366a5af7aa3942feb1e"}, "fe799307f1624099878210aa0b9f1475": {"name": "Adam", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "gateway", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d"}, "d3da73bde12a47d5a6b8f9dad971f2ec": {"name": "Thermostatic Radiator Jessie", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "82fa13f017d240daa0d0ea1775420f24"}, "21f2b542c49845e6bb416884c55778d6": {"name": "Playstation Smart Plug", "types": {"py/set": ["plug", "power"]}, "class": "game_console", "location": "4efbab4c8bb84fbab26c8decf670eb96"}, "78d1126fc4c743db81b61c20e88342a7": {"name": "CV Pomp", "types": {"py/set": ["plug", "power"]}, "class": "central_heating_pump", "location": "c50f167537524366a5af7aa3942feb1e"}, "90986d591dcd426cae3ec3e8111ff730": {"name": "Adam", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "heater_central", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d"}, "cd0ddb54ef694e11ac18ed1cbce5dbbd": {"name": "NAS", "types": {"py/set": ["plug", "power"]}, "class": "vcr", "location": "e704bae65654496f9cade9c855decdfe"}, "4a810418d5394b3f82727340b91ba740": {"name": "USG Smart Plug", "types": {"py/set": ["plug", "power"]}, "class": "router", "location": "0217e9743c174eef9d6e9f680d403ce2"}, "02cf28bfec924855854c544690a609ef": {"name": "NVR", "types": {"py/set": ["plug", "power"]}, "class": "vcr", "location": "c4d2bda6df8146caa2e5c2b5dc65660e"}, "a28f588dc4a049a483fd03a30361ad3a": {"name": "Fibaro HC2", "types": {"py/set": ["plug", "power"]}, "class": "settop", "location": "cd143c07248f491493cea0533bc3d669"}, "6a3bf693d05e48e0b460c815a4fdd09d": {"name": "Zone Thermostat Jessie", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "82fa13f017d240daa0d0ea1775420f24"}, "680423ff840043738f42cc7f1ff97a36": {"name": "Thermostatic Radiator Badkamer", "types": {"py/set": ["thermostat"]}, "class": "thermo_sensor", "location": "08963fec7c53423ca5680aa4cb502c63"}, "f1fee6043d3642a9b0a65297455f008e": {"name": "Zone Thermostat Badkamer", "types": {"py/set": ["thermostat"]}, "class": "zone_thermostat", "location": "08963fec7c53423ca5680aa4cb502c63"}, "675416a629f343c495449970e2ca37b5": {"name": "Ziggo Modem", "types": {"py/set": ["plug", "power"]}, "class": "router", "location": "2b1591ecf6344d4d93b03dece9747648"}, "e7693eb9582644e5b865dba8d4447cf1": {"name": "CV Kraan Garage", "types": {"py/set": ["thermostat"]}, "class": "thermostatic_radiator_valve", "location": "446ac08dd04d4eff8ac57489757b7314"}}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 34.0, "electricity_consumed_interval": 8.65, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 81.2, "electricity_consumed_interval": 12.7, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 8.5, "electricity_consumed_interval": 0.0, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 12.2, "electricity_consumed_interval": 2.8, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 14.0, "temperature": 19.1, "battery": 0.51, "valve_position": 0.0, "temperature_difference": -0.3}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 16.0, "temperature": 17.1, "battery": 0.37, "active_preset": "asleep", "presets": {"home": [20.0, 22.0], "no_frost": [10.0, 30.0], "away": [12.0, 25.0], "vacation": [11.0, 28.0], "asleep": [16.0, 24.0]}, "schedule_temperature": 15.0, "available_schedules": ["CV Jessie"], "selected_schedule": "CV Jessie", "last_used": "CV Jessie"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 35.8, "electricity_consumed_interval": 5.85, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"water_temperature": 70.0, "intended_boiler_temperature": 70.0, "modulation_level": 0.01}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 12.5, "electricity_consumed_interval": 0.0, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 13.0, "temperature": 17.1, "battery": 0.62, "valve_position": 0.0, "temperature_difference": -0.1}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 21.5, "temperature": 26.2, "valve_position": 1.0, "temperature_difference": 3.7}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 21.5, "temperature": 21.1, "battery": 0.34, "active_preset": "home", "presets": {"vacation": [15.0, 28.0], "asleep": [18.0, 24.0], "no_frost": [12.0, 30.0], "away": [17.0, 25.0], "home": [21.5, 22.0]}, "schedule_temperature": 21.5, "available_schedules": ["GF7 Woonkamer"], "selected_schedule": "GF7 Woonkamer", "last_used": "GF7 Woonkamer"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"electricity_consumed": 16.5, "electricity_consumed_interval": 0.29, "electricity_produced": 0.0, "electricity_produced_interval": 0.0, "relay": true}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 16.0, "temperature": 16.9, "battery": 0.62, "valve_position": 0.0, "temperature_difference": 0.1}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 13.0, "temperature": 16.5, "battery": 0.67, "active_preset": "away", "presets": {"home": [20.0, 22.0], "away": [12.0, 25.0], "vacation": [12.0, 28.0], "no_frost": [8.0, 30.0], "asleep": [15.0, 24.0]}, "schedule_temperature": null, "available_schedules": [], "selected_schedule": null, "last_used": null}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 5.5, "temperature": 15.6, "battery": 0.68, "valve_position": 0.0, "temperature_difference": 0.1, "active_preset": "no_frost", "presets": {"home": [20.0, 22.0], "asleep": [17.0, 24.0], "away": [15.0, 25.0], "vacation": [15.0, 28.0], "no_frost": [10.0, 30.0]}, "schedule_temperature": null, "available_schedules": [], "selected_schedule": null, "last_used": null}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 14.0, "temperature": 18.8, "battery": 0.92, "active_preset": "away", "presets": {"asleep": [17.0, 24.0], "no_frost": [10.0, 30.0], "away": [14.0, 25.0], "home": [21.0, 22.0], "vacation": [12.0, 28.0]}, "schedule_temperature": 14.0, "available_schedules": ["Badkamer Schema"], "selected_schedule": "Badkamer Schema", "last_used": "Badkamer Schema"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"outdoor_temperature": 7.69}
Binary file not shown.
1 change: 1 addition & 0 deletions tests/testdata/anna_heatpump/get_all_devices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"1cbf783bb11e4a7c8a6843dee3a86927": {"name": "Anna", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "heater_central", "location": "a57efe5f145f498c9be62a9b63626fbf"}, "015ae9ea3f964e668e490fa39da3870b": {"name": "Anna", "types": {"py/set": ["temperature", "thermostat", "home"]}, "class": "gateway", "location": "a57efe5f145f498c9be62a9b63626fbf"}, "3cb70739631c4d17a86b8b12e8a5161b": {"name": "Anna", "types": {"py/set": ["thermostat"]}, "class": "thermostat", "location": "c784ee9fdab44e1395b8dee7d7a497d5"}}
Binary file removed tests/testdata/anna_heatpump/get_all_devices.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"outdoor_temperature": 20.2}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"outdoor_temperature": 18.0, "heating_state": false, "dhw_state": false, "water_temperature": 29.1, "return_temperature": 25.1, "water_pressure": 1.57, "intended_boiler_temperature": 0.0, "modulation_level": 0.52, "cooling_state": false, "slave_boiler_state": false, "compressor_state": true, "flame_state": false}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"setpoint": 21.0, "temperature": 23.3, "active_preset": "home", "presets": {"no_frost": [10.0, 30.0], "home": [21.0, 22.0], "away": [20.0, 25.0], "asleep": [20.5, 24.0], "vacation": [17.0, 28.0]}, "schedule_temperature": null, "available_schedules": ["standaard"], "selected_schedule": "standaard", "last_used": "standaard", "illuminance": 86.0}
Binary file not shown.
Loading