diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 0e1cfa461..3126b7bba 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -4,7 +4,7 @@ name: Latest commit env: - CACHE_VERSION: 1 + CACHE_VERSION: 2 DEFAULT_PYTHON: 3.9 PRE_COMMIT_HOME: ~/.cache/pre-commit diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ecc91d41..5a29df73c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.8.5 - Fix sensor scaling + - Fix for via HA Core issue #44349 + - Remove aiohttp-workaround - issue solved in aiohttp 3.7.1 + +(## 0.8.4 - Not released: Fix "Gas Consumed Interval stays 0" ) + ## 0.8.2/0.8.3 - Code quality improvements - Switch Smile to defusedxml from lxml (improving security) - Lint and flake recommendations fixed diff --git a/plugwise/__init__.py b/plugwise/__init__.py index be54e90c3..1ebf3c136 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -1,6 +1,6 @@ """Plugwise module.""" -__version__ = "0.8.3" +__version__ = "0.8.5" from plugwise.smile import Smile from plugwise.stick import stick diff --git a/plugwise/smile.py b/plugwise/smile.py index de36caf4f..a5471fac0 100644 --- a/plugwise/smile.py +++ b/plugwise/smile.py @@ -1,5 +1,4 @@ """Plugwise Home Assistant module.""" - import asyncio import datetime as dt import logging @@ -15,7 +14,7 @@ # Version detection import semver -from plugwise.constants import ( +from .constants import ( APPLIANCES, ATTR_NAME, ATTR_TYPE, @@ -31,13 +30,14 @@ LOCATIONS, MODULES, NOTIFICATIONS, + POWER_WATT, RULES, SMILES, STATUS, SWITCH_GROUP_TYPES, SYSTEM, ) -from plugwise.exceptions import ( +from .exceptions import ( ConnectionFailedError, DeviceSetupError, DeviceTimeoutError, @@ -47,7 +47,7 @@ UnsupportedDeviceError, XMLDataMissingError, ) -from plugwise.util import ( +from .util import ( determine_selected, escape_illegal_xml_characters, format_measure, @@ -87,8 +87,6 @@ async def _create_session() -> aiohttp.ClientSession: self.websession = websession self._auth = aiohttp.BasicAuth(username, password=password) - # Work-around for Stretchv2-aiohttp-deflate-error, can be removed for aiohttp v3.7 - self._headers = {"Accept-Encoding": "gzip"} self._timeout = timeout self._endpoint = f"http://{host}:{str(port)}" @@ -232,10 +230,7 @@ async def request( try: with async_timeout.timeout(self._timeout): if method == "get": - # Work-around, see above, can be removed for aiohttp v3.7: - resp = await self.websession.get( - url, auth=self._auth, headers=self._headers - ) + resp = await self.websession.get(url, auth=self._auth) if method == "put": resp = await self.websession.put( url, data=data, headers=headers, auth=self._auth @@ -905,25 +900,28 @@ def get_power_data_from_location(self, loc_id): key_string = f"{measurement}_{peak}_{log_found}" net_string = f"net_electricity_{log_found}" val = loc_logs.find(locator).text + f_val = format_measure(val, attrs[ATTR_UNIT_OF_MEASUREMENT]) + # Format only HOME_MEASUREMENT POWER_WATT values, do not move to util-format_meaure function! + if attrs[ATTR_UNIT_OF_MEASUREMENT] == POWER_WATT: + f_val = int(round(float(val))) if all( item in key_string for item in ["electricity", "cumulative"] ): f_val = format_measure(val, ENERGY_KILO_WATT_HOUR) - else: - f_val = format_measure(val, attrs[ATTR_UNIT_OF_MEASUREMENT]) - if "gas" in measurement: - key_string = f"{measurement}_{log_found}" - f_val = float(f"{round(float(val), 3):.3f}") - # Energy differential if "electricity" in measurement: - f_val = float(f"{round(float(val), 1):.1f}") diff = 1 if "produced" in measurement: diff = -1 if net_string not in direct_data: - direct_data[net_string] = float() - direct_data[net_string] += float(f_val * diff) + direct_data[net_string] = 0 + if isinstance(f_val, int): + direct_data[net_string] += f_val * diff + else: + direct_data[net_string] += float(f_val * diff) + + if "gas" in measurement: + key_string = f"{measurement}_{log_found}" direct_data[key_string] = f_val diff --git a/plugwise/util.py b/plugwise/util.py index 5c648ac3d..4dbeedeb8 100644 --- a/plugwise/util.py +++ b/plugwise/util.py @@ -10,13 +10,15 @@ import crcmod -from plugwise.constants import ( +from .constants import ( ENERGY_KILO_WATT_HOUR, HW_MODELS, LOGADDR_OFFSET, PERCENTAGE, PLUGWISE_EPOCH, + POWER_WATT, UTF8_DECODE, + VOLUME_CUBIC_METERS, ) crc_fun = crcmod.mkCrcFun(0x11021, rev=False, initCrc=0x0000, xorOut=0x0000) @@ -86,20 +88,25 @@ def escape_illegal_xml_characters(xmldata): def format_measure(measure, unit): """Format measure to correct type.""" - if unit == PERCENTAGE and float(measure) > 0: - measure = int(float(measure) * 100) - if unit == ENERGY_KILO_WATT_HOUR: - measure = float(measure) / 1000 + SPECIAL_FORMAT = [ENERGY_KILO_WATT_HOUR, VOLUME_CUBIC_METERS] try: measure = int(measure) except ValueError: + if unit == PERCENTAGE and float(measure) > 0: + return int(float(measure) * 100) + + if unit == ENERGY_KILO_WATT_HOUR: + measure = float(measure) / 1000 try: - if float(measure) < 10: - measure = float(f"{round(float(measure), 2):.2f}") - elif float(measure) >= 10 and float(measure) < 100: - measure = float(f"{round(float(measure), 1):.1f}") - elif float(measure) >= 100: - measure = int(round(float(measure))) + if unit in SPECIAL_FORMAT: + measure = float(f"{round(float(measure), 3):.3f}") + else: + if abs(float(measure)) < 10: + measure = float(f"{round(float(measure), 2):.2f}") + elif abs(float(measure)) >= 10 and abs(float(measure)) < 100: + measure = float(f"{round(float(measure), 1):.1f}") + elif abs(float(measure)) >= 100: + measure = int(round(float(measure))) except ValueError: if measure == "on": measure = True diff --git a/tests/test_smile.py b/tests/test_smile.py index 49549ae1a..026f92981 100644 --- a/tests/test_smile.py +++ b/tests/test_smile.py @@ -1,6 +1,7 @@ """Test Plugwise Home Assistant module and generate test JSON fixtures.""" import asyncio +import importlib # Fixture writing import logging @@ -16,14 +17,8 @@ import jsonpickle as json import pytest -from plugwise.exceptions import ( - ConnectionFailedError, - DeviceTimeoutError, - ErrorSendingCommandError, - InvalidXMLError, - ResponseError, -) -from plugwise.smile import Smile +pw_exceptions = importlib.import_module("plugwise.exceptions") +pw_smile = importlib.import_module("plugwise.smile") pp = PrettyPrinter(indent=8) @@ -204,7 +199,7 @@ async def connect(self, broken=False, timeout=False, put_timeout=False): text = await resp.text() assert "xml" in text - smile = Smile( + smile = pw_smile.Smile( host=server.host, username="smile", password="".join(random.choice(string.ascii_lowercase) for i in range(8)), @@ -223,7 +218,7 @@ async def connect(self, broken=False, timeout=False, put_timeout=False): assert connection_state assert smile.smile_type is not None return server, smile, client - except (DeviceTimeoutError, InvalidXMLError) as e: + except (pw_exceptions.DeviceTimeoutError, pw_exceptions.InvalidXMLError) as e: await self.disconnect(server, client) raise e @@ -239,7 +234,7 @@ async def connect_wrapper(self, put_timeout=False): await self.connect(timeout=True) _LOGGER.error(" - timeout not handled") raise self.ConnectError - except (DeviceTimeoutError, ResponseError): + except (pw_exceptions.DeviceTimeoutError, pw_exceptions.ResponseError): _LOGGER.info(" + successfully passed timeout handling.") try: @@ -247,7 +242,7 @@ async def connect_wrapper(self, put_timeout=False): await self.connect(broken=True) _LOGGER.error(" - broken information not handled") raise self.ConnectError - except InvalidXMLError: + except pw_exceptions.InvalidXMLError: _LOGGER.info(" + successfully passed XML issue handling.") _LOGGER.info("Connecting to functioning device:") @@ -282,7 +277,7 @@ def show_setup(location_list, device_list): _LOGGER.info(" ! no devices found in this location") @pytest.mark.asyncio - async def device_test(self, smile=Smile, testdata=None): + async def device_test(self, smile=pw_smile.Smile, testdata=None): """Perform basic device tests.""" _LOGGER.info("Asserting testdata:") device_list = smile.get_all_devices() @@ -330,27 +325,7 @@ async def device_test(self, smile=Smile, testdata=None): measure_key, measure_assert ), ) - if isinstance(data[measure_key], float): - if all( - item in measure_key - for item in ["electricity", "cumulative"] - ): - measure = float( - "{:.1f}".format( - round(float(data[measure_key]) / 1000, 1) - ) - ) - elif float(data[measure_key]) < 10: - measure = float( - "{:.2f}".format(round(float(data[measure_key]), 2)) - ) - else: - measure = float( - "{:.1f}".format(round(float(data[measure_key]), 1)) - ) - assert measure == measure_assert - else: - assert data[measure_key] == measure_assert + assert data[measure_key] == measure_assert @pytest.mark.asyncio async def tinker_relay(self, smile, dev_ids=None, members=None, unhappy=False): @@ -366,7 +341,10 @@ async def tinker_relay(self, smile, dev_ids=None, members=None, unhappy=False): ) assert relay_change _LOGGER.info(" + worked as intended") - except (ErrorSendingCommandError, ResponseError): + except ( + pw_exceptions.ErrorSendingCommandError, + pw_exceptions.ResponseError, + ): if unhappy: _LOGGER.info(" + failed as expected") else: @@ -386,7 +364,10 @@ async def tinker_thermostat(self, smile, loc_id, good_schemas=None, unhappy=Fals temp_change = await smile.set_temperature(loc_id, new_temp) assert temp_change _LOGGER.info(" + worked as intended") - except (ErrorSendingCommandError, ResponseError): + except ( + pw_exceptions.ErrorSendingCommandError, + pw_exceptions.ResponseError, + ): if unhappy: _LOGGER.info(" + failed as expected") else: @@ -405,14 +386,17 @@ async def tinker_thermostat(self, smile, loc_id, good_schemas=None, unhappy=Fals preset_change = await smile.set_preset(loc_id, new_preset) assert preset_change == assert_state _LOGGER.info(" + worked as intended") - except (ErrorSendingCommandError, ResponseError): + except ( + pw_exceptions.ErrorSendingCommandError, + pw_exceptions.ResponseError, + ): if unhappy: _LOGGER.info(" + failed as expected") else: _LOGGER.info(" - failed unexpectedly") raise self.UnexpectedError - if good_schemas is not []: + if good_schemas != []: good_schemas.append("!VeryBogusSchemaNameThatNobodyEverUsesOrShouldUse") for new_schema in good_schemas: assert_state = True @@ -428,7 +412,10 @@ async def tinker_thermostat(self, smile, loc_id, good_schemas=None, unhappy=Fals ) assert schema_change == assert_state _LOGGER.info(" + failed as intended") - except (ErrorSendingCommandError, ResponseError): + except ( + pw_exceptions.ErrorSendingCommandError, + pw_exceptions.ResponseError, + ): if unhappy: _LOGGER.info(" + failed as expected before intended failure") else: @@ -571,9 +558,9 @@ async def test_connect_smile_p1_v2(self): "938696c4bcdb4b8a9a595cb38ed43913": { "electricity_consumed_peak_point": 458.0, "net_electricity_point": 458.0, - "gas_consumed_cumulative": 584.4, - "electricity_produced_peak_cumulative": 1296.1, - "electricity_produced_off_peak_cumulative": 482.6, + "gas_consumed_cumulative": 584.433, + "electricity_produced_peak_cumulative": 1296.136, + "electricity_produced_off_peak_cumulative": 482.598, } } @@ -608,7 +595,7 @@ async def test_connect_smile_p1_v2_2(self): "199aa40f126840f392983d171374ab0b": { "electricity_consumed_peak_point": 368.0, "net_electricity_point": 368.0, - "gas_consumed_cumulative": 2638.0, + "gas_consumed_cumulative": 2637.993, "electricity_produced_peak_cumulative": 0.0, } } @@ -843,42 +830,6 @@ async def test_connect_anna_without_boiler_fw4(self): await smile.close_connection() await self.disconnect(server, client) - # TODO: This device setup needs work - doesn't seem to work straightforard - # currently breaks on setting thermostat setpoint - - # Actual test for directory 'Adam' - # living room floor radiator valve and separate zone thermostat - # an three rooms with conventional radiators - """ - @pytest.mark.asyncio - async def test_connect_adam(self): - testdata = { - "95395fb15c814a1f8bba88363e4a5833": { "temperature": 19.8, 'active_preset': 'home',}, - "450d49ef2e8942f78c1242cdd8dfecd0": { "temperature": 20.18, 'battery': 0.77, 'selected_schedule': 'Kira' }, - "bc9e18756ad04c3f9f35298cbe537c8e": { "temperature": 20.63, 'thermostat': 20.0 }, - } - - self.smile_setup = 'adam_living_floor_plus_3_rooms' - server, smile, client = await self.connect_wrapper() - assert smile.smile_type == "thermostat" - assert smile.smile_version[0] == "2.3.35" - assert not smile._smile_legacy - await self.device_test(smile, testdata) - await self.tinker_thermostat( - smile, "95395fb15c814a1f8bba88363e4a5833", good_schemas=["Living room"] - ) - await smile.close_connection() - await self.disconnect(server, client) - - server, smile, client = await self.connect_wrapper(put_timeout=True) - await self.tinker_thermostat( - smile, "95395fb15c814a1f8bba88363e4a5833", good_schemas=["Living room"], - unhappy=True, - ) - await smile.close_connection() - await self.disconnect(server, client) - """ - @pytest.mark.asyncio async def test_connect_adam_plus_anna(self): """Test outdated information for Adam with Anna setup.""" @@ -1146,7 +1097,7 @@ async def test_connect_p1v3(self): "ba4de7613517478da82dd9b6abea36af": { "electricity_consumed_peak_point": 650.0, "electricity_produced_peak_cumulative": 0.0, - "electricity_consumed_off_peak_cumulative": 10263.2, + "electricity_consumed_off_peak_cumulative": 10263.159, } } @@ -1178,7 +1129,7 @@ async def test_connect_p1v3solarfake(self): "ba4de7613517478da82dd9b6abea36af": { "electricity_consumed_peak_point": 644.0, "electricity_produced_peak_cumulative": 20.0, - "electricity_consumed_off_peak_cumulative": 10263.2, + "electricity_consumed_off_peak_cumulative": 10263.159, "net_electricity_point": 244, } } @@ -1211,11 +1162,11 @@ async def test_connect_p1v3_full_option(self): # Gateway / P1 itself "e950c7d5e1ee407a858e2a8b5016c8b3": { "electricity_consumed_peak_point": 0.0, - "electricity_produced_peak_cumulative": 396.6, - "electricity_consumed_off_peak_cumulative": 551.1, - "electricity_produced_peak_point": 2761.0, - "net_electricity_point": -2761.0, - "gas_consumed_cumulative": 584.9, + "electricity_produced_peak_cumulative": 396.559, + "electricity_consumed_off_peak_cumulative": 551.09, + "electricity_produced_peak_point": 2761, + "net_electricity_point": -2761, + "gas_consumed_cumulative": 584.85, } } @@ -1422,7 +1373,7 @@ async def test_fail_legacy_system(self): try: _server, _smile, _client = await self.connect_wrapper() assert False - except ConnectionFailedError: + except pw_exceptions.ConnectionFailedError: assert True class PlugwiseTestError(Exception): diff --git a/userdata/adam_living_floor_plus_3_rooms/core.appliances.xml b/userdata/adam_living_floor_plus_3_rooms/core.appliances.xml deleted file mode 100644 index cdd1a1ccf..000000000 --- a/userdata/adam_living_floor_plus_3_rooms/core.appliances.xml +++ /dev/null @@ -1,753 +0,0 @@ - - - - Zone Thermostat 000D6F000C860079 - A zone thermostat regulates the temperature in a heating zone (generally a room). - zone_thermostat - 2019-08-23T22:49:31.782+02:00 - 2019-12-01T17:21:25.954+01:00 - - - - - - 2019-12-01T17:21:25.951+01:00 - temperature - C - 2019-12-01T17:21:25.951+01:00 - - 19.80 - - - - - 2019-12-01T13:19:27.404+01:00 - battery - - 2019-11-28T01:46:30.962+01:00 - - 0.84 - - - - - 2019-11-17T18:19:43.382+01:00 - temperature_offset - C - 2019-10-16T21:27:35.226+02:00 - - 0.00 - - - - - 2019-12-01T09:00:05.993+01:00 - thermostat - C - 2019-12-01T09:00:05.942+01:00 - - 20.00 - - - - - - - - 2019-11-17T18:19:43.382+01:00 - temperature_offset - 0 - - - 2019-12-01T09:00:05.993+01:00 - thermostat - 20 - 0 - 99.9 - 0.01 - - - - - - - Thermostatic Radiator Valve 000D6F000B213F30 - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-08-24T14:38:18.617+02:00 - 2019-12-01T17:20:23.121+01:00 - - - - - - 2019-12-01T17:20:23.114+01:00 - temperature - C - 2019-12-01T17:20:23.114+01:00 - - 20.93 - - - - - 2019-12-01T17:20:23.114+01:00 - uncorrected_temperature - C - 2019-12-01T17:20:23.114+01:00 - - 20.93 - - - - - 2019-12-01T17:13:37.272+01:00 - temperature_difference - C - 2019-12-01T17:13:37.272+01:00 - - 0.20 - - - - - 2019-11-12T00:48:31.118+01:00 - thermostat - C - 2019-11-12T00:48:31.118+01:00 - - 21.00 - - - - - 2019-10-07T11:03:12.009+02:00 - temperature_offset - C - 2019-08-24T14:54:21.268+02:00 - - 0.00 - - - - - 2019-12-01T17:13:07.556+01:00 - valve_position - - 2019-12-01T16:15:42.945+01:00 - - 0.00 - - - - - 2019-12-01T08:36:20.120+01:00 - battery - - 2019-12-01T08:36:20.120+01:00 - - 0.48 - - - - - - - - 2019-10-07T11:03:12.009+02:00 - temperature_offset - 0 - - - 2019-11-12T00:48:31.119+01:00 - thermostat - 21 - 0 - 99.99 - 0.01 - - - - - - - Thermostatic Radiator Valve 000D6F000B2142D0 - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-08-24T14:24:28.256+02:00 - 2019-12-01T17:18:49.650+01:00 - - - - - - 2019-12-01T17:15:49.812+01:00 - temperature - C - 2019-12-01T17:15:49.812+01:00 - - 20.18 - - - - - 2019-12-01T17:15:49.812+01:00 - uncorrected_temperature - C - 2019-12-01T17:15:49.812+01:00 - - 20.18 - - - - - 2019-12-01T17:18:49.646+01:00 - temperature_difference - C - 2019-12-01T17:18:49.646+01:00 - - 0.60 - - - - - 2019-10-05T01:43:16.560+02:00 - temperature_offset - C - 2019-08-26T19:48:00.676+02:00 - - 0.00 - - - - - 2019-12-01T17:13:40.546+01:00 - valve_position - - 2019-12-01T16:15:43.877+01:00 - - 1.00 - - - - - 2019-12-01T11:27:12.542+01:00 - battery - - 2019-12-01T11:27:12.542+01:00 - - 0.77 - - - - - 2019-11-29T16:00:58.414+01:00 - thermostat - C - 2019-11-29T16:00:58.414+01:00 - - 20.00 - - - - - - - - 2019-10-05T01:43:16.560+02:00 - temperature_offset - 0 - - - 2019-11-29T16:00:58.415+01:00 - thermostat - 20 - 0 - 99.99 - 0.01 - - - - - - - Thermostatic Radiator Valve 000D6F000C96A82F - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-08-24T12:57:33.457+02:00 - 2019-12-01T17:21:24.412+01:00 - - - - - - 2019-12-01T17:12:16.587+01:00 - valve_position - - 2019-12-01T13:16:04.846+01:00 - - 0.00 - - - - - 2019-12-01T17:09:00.085+01:00 - temperature - C - 2019-12-01T17:09:00.085+01:00 - - 20.63 - - - - - 2019-12-01T17:21:24.408+01:00 - temperature_difference - C - 2019-12-01T17:21:24.408+01:00 - - 0.10 - - - - - 2019-12-01T09:00:01.678+01:00 - thermostat - C - 2019-12-01T09:00:01.678+01:00 - - 20.00 - - - - - 2019-10-05T01:33:59.209+02:00 - temperature_offset - C - 2019-08-24T12:57:39.689+02:00 - - 0.00 - - - - - 2019-12-01T17:09:00.085+01:00 - uncorrected_temperature - C - 2019-12-01T17:09:00.085+01:00 - - 20.63 - - - - - - - - 2019-10-05T01:33:59.209+02:00 - temperature_offset - 0 - - - 2019-12-01T09:00:01.679+01:00 - thermostat - 20 - 0 - 99.99 - 0.01 - - - - - - - Thermostatic Radiator Valve 000D6F000B214828 - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-10-05T01:32:54.452+02:00 - 2019-12-01T17:15:46.020+01:00 - - - - - - 2019-12-01T11:00:21.013+01:00 - thermostat - C - 2019-12-01T11:00:21.013+01:00 - - 17.00 - - - - - 2019-12-01T17:15:46.016+01:00 - temperature_difference - C - 2019-12-01T17:15:46.016+01:00 - - 0.00 - - - - - 2019-12-01T17:07:39.209+01:00 - temperature - C - 2019-12-01T17:07:39.209+01:00 - - 19.13 - - - - - 2019-12-01T17:13:36.819+01:00 - valve_position - - 2019-12-01T10:01:27.447+01:00 - - 0.00 - - - - - 2019-10-05T01:48:31.471+02:00 - temperature_offset - C - 2019-10-05T01:40:20.138+02:00 - - 0.00 - - - - - 2019-12-01T17:07:39.209+01:00 - uncorrected_temperature - C - 2019-12-01T17:07:39.209+01:00 - - 19.13 - - - - - 2019-12-01T16:53:26.005+01:00 - battery - - 2019-11-26T17:39:21.072+01:00 - - 0.88 - - - - - - - - 2019-10-05T01:48:31.471+02:00 - temperature_offset - 0 - - - 2019-12-01T11:00:21.014+01:00 - thermostat - 17 - 0 - 99.99 - 0.01 - - - - - - - Gateway D40FB201C486 - Container for variables logged about the Gateway in general. - gateway - 2018-11-16T11:01:51.093+01:00 - 2019-10-05T01:30:42.439+02:00 - - - - - 2019-10-05T01:06:35.127+02:00 - link_quality - - 2019-10-05T01:01:34.864+02:00 - - 66 - - - - - 2019-10-05T01:30:48.063+02:00 - lan_state - - 2019-10-05T01:01:10.369+02:00 - - up - - - - - 2019-10-05T01:30:39.480+02:00 - wlan_ip_address - - 2019-10-05T01:22:18+02:00 - - 0.0.0.0 - - - - - 2019-10-05T01:30:42.422+02:00 - wlan_state - - 2019-10-05T01:30:42.422+02:00 - - down - - - - - 2019-10-05T01:06:35.127+02:00 - signal_strength - dBm - 2019-10-05T01:01:34.864+02:00 - - -44.00 - - - - - 2019-10-05T01:30:48.063+02:00 - lan_ip_address - - 2019-08-24T21:27:04+02:00 - - 127.0.0.1 - - - - - - - - Central heating boiler - - heater_central - 2019-08-23T16:01:45.503+02:00 - 2019-12-01T16:35:22.710+01:00 - - - - - 2019-12-01T16:15:46+01:00 - burner_efficiency - s - 2019-12-01T16:15:46+01:00 - - 4780 - - - - - 2019-10-05T01:09:39.631+02:00 - modulation_level - - 2019-10-05T01:09:39.631+02:00 - - 0.00 - - - - - 2019-12-01T14:00:00+01:00 - burner_efficiency - s - 2019-12-01T14:00:00+01:00 - PT1H - - 4758 - - - - - 2019-08-23T16:01:52.608+02:00 - heating_curve_high_temperature - C - 2019-08-23T16:01:52.608+02:00 - - 20.00 - - - - - - intended_central_heating_state - - - - - - 2019-12-01T16:35:22.691+01:00 - intended_boiler_temperature - C - 2019-12-01T16:35:22.691+01:00 - - 0.00 - - - - - 2019-08-23T16:01:50.724+02:00 - heating_curve_low_temperature - C - 2019-08-23T16:01:50.724+02:00 - - -10.00 - - - - - 2019-12-01T16:00:00+01:00 - boiler_temperature - C - 2019-12-05T01:00:00+01:00 - - 80.00 - - - - - 2019-08-24T14:59:03.941+02:00 - regulation_state - - 2019-08-24T14:59:03.941+02:00 - - on - - - - - - burner_operation_time - s - - PT1H - - - - 2019-12-01T16:35:22.707+01:00 - central_heating_state - - 2019-12-01T16:35:22.707+01:00 - - off - - - - - 2019-08-23T16:01:53.606+02:00 - heating_curve_high_setpoint - C - 2019-08-23T16:01:53.606+02:00 - - 80.00 - - - - - 2019-08-23T16:01:51.636+02:00 - heating_curve_low_setpoint - C - 2019-08-23T16:01:51.636+02:00 - - 80.00 - - - - - - - 2019-08-23T16:01:52.609+02:00 - heating_curve_high_temperature - 20 - 10 - 40 - 1 - - - - - 2019-08-23T16:01:50.725+02:00 - heating_curve_low_temperature - -10 - -30 - 10 - 1 - - - - - - 2019-08-24T14:59:03.941+02:00 - regulation_state - on - - - 2019-08-23T16:01:51.637+02:00 - heating_curve_low_setpoint - 80 - 10 - 90 - 1 - - - - - 2019-08-23T16:01:53.607+02:00 - heating_curve_high_setpoint - 80 - 20 - 90 - 1 - - - - - - - OpenThermGateway - An OpenTherm Gateway - open_therm_gateway - 2017-08-10T11:57:37.012+02:00 - 2019-08-05T14:16:28.504+02:00 - - - - - 2019-10-05T01:30:50.083+02:00 - open_therm_power_mode - - 2019-08-05T14:16:28.485+02:00 - - 0 - - - - - 2019-10-05T01:30:45.187+02:00 - override_mode - - 2018-11-16T11:01:47.010+01:00 - - on - - - - - - - - diff --git a/userdata/adam_living_floor_plus_3_rooms/core.direct_objects.xml b/userdata/adam_living_floor_plus_3_rooms/core.direct_objects.xml deleted file mode 100644 index c5f7a9b57..000000000 --- a/userdata/adam_living_floor_plus_3_rooms/core.direct_objects.xml +++ /dev/null @@ -1,984 +0,0 @@ - - - - Zone Thermostat 000D6F000C860079 - A zone thermostat regulates the temperature in a heating zone (generally a room). - zone_thermostat - 2019-08-23T22:49:31.782+02:00 - 2020-01-11T19:35:56.043+01:00 - - - - - - 2020-01-11T19:35:56.038+01:00 - temperature - C - 2020-01-11T19:35:56.038+01:00 - - 19.70 - - - - - 2020-01-11T19:05:57.836+01:00 - battery - - 2020-01-10T19:43:03.367+01:00 - - 0.72 - - - - - 2020-01-10T19:43:07.100+01:00 - temperature_offset - C - 2019-10-16T21:27:35.226+02:00 - - 0.00 - - - - - 2020-01-11T09:00:05.317+01:00 - thermostat - C - 2020-01-11T09:00:05.274+01:00 - - 20.00 - - - - - - - - 2020-01-10T19:43:07.100+01:00 - temperature_offset - 0 - - - 2020-01-11T09:00:05.317+01:00 - thermostat - 20 - 0 - 99.9 - 0.01 - - - - - - - Living room - - livingroom - 2019-08-23T22:48:59.648+02:00 - 2020-01-11T19:35:56.055+01:00 - - home - - - - - - - - 2020-01-11T09:00:05.274+01:00 - thermostat - C - 2019-10-04T10:41:42.525+02:00 - - 20.00 - - - - 2020-01-11T19:35:56.038+01:00 - temperature - C - 2019-09-27T22:39:08.008+02:00 - - 19.70 - - - - - - 2020-01-11T09:00:00.580+01:00 - thermostat - 20 - 0 - 99.99 - 0.01 - - - - - - Bedroom - - bedroom - 2019-08-23T22:48:43.914+02:00 - 2020-01-11T19:40:42.867+01:00 - - home - - - - - - - 2020-01-10T16:00:00.631+01:00 - thermostat - C - 2019-08-24T14:39:28.195+02:00 - - 20.00 - - - - 2020-01-11T19:40:42.840+01:00 - temperature - C - 2019-09-26T17:52:36.221+02:00 - - 19.41 - - - - - - 2020-01-10T16:00:00.632+01:00 - thermostat - 20 - 0 - 99.99 - 0.01 - - - - - - Thermostatic Radiator Valve 000D6F000B214828 - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-10-05T01:32:54.452+02:00 - 2020-01-11T19:37:13.723+01:00 - - - - - - 2020-01-11T11:00:09.750+01:00 - thermostat - C - 2020-01-11T11:00:09.750+01:00 - - 17.00 - - - - - 2020-01-11T19:31:45.925+01:00 - temperature_difference - C - 2020-01-11T19:02:57.761+01:00 - - 0.00 - - - - - 2020-01-11T19:37:13.718+01:00 - temperature - C - 2020-01-11T19:37:13.718+01:00 - - 19.31 - - - - - 2020-01-11T19:24:23.824+01:00 - valve_position - - 2020-01-11T11:00:19.739+01:00 - - 0.00 - - - - - 2019-10-05T01:48:31.471+02:00 - temperature_offset - C - 2019-10-05T01:40:20.138+02:00 - - 0.00 - - - - - 2020-01-11T19:37:13.719+01:00 - uncorrected_temperature - C - 2020-01-11T19:08:25.561+01:00 - - 19.31 - - - - - 2020-01-11T10:15:11.739+01:00 - battery - - 2020-01-08T10:44:50.515+01:00 - - 0.80 - - - - - - - - 2019-10-05T01:48:31.471+02:00 - temperature_offset - 0 - - - 2020-01-11T11:00:09.750+01:00 - thermostat - 17 - 0 - 99.99 - 0.01 - - - - - - - Home - - building - 2018-11-16T11:01:43.288+01:00 - 2020-01-11T19:38:01.935+01:00 - - home - - - - - 2020-01-11T19:38:00+01:00 - outdoor_temperature - C - 2020-01-11T19:38:00+01:00 - - 7.44 - - - - - 2020-01-11T19:38:00+01:00 - wind_vector - m_s - 2020-01-11T19:38:00+01:00 - - (11.80,0.00) - - - - - 2020-01-11T19:38:00+01:00 - solar_irradiance - W_m2 - 2020-01-11T19:38:00+01:00 - - 0.00 - - - - - 2020-01-11T19:38:00+01:00 - humidity - RH - 2020-01-11T19:38:00+01:00 - - 81.00 - - - - - - - - Thermostatic Radiator Valve 000D6F000B213F30 - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-08-24T14:38:18.617+02:00 - 2020-01-11T19:46:25.192+01:00 - - - - - - 2020-01-11T19:46:25.151+01:00 - temperature - C - 2020-01-11T19:46:25.151+01:00 - - 17.43 - - - - - 2020-01-11T19:46:25.151+01:00 - uncorrected_temperature - C - 2020-01-11T19:46:25.151+01:00 - - 19.76 - - - - - 2020-01-11T19:46:25.188+01:00 - temperature_difference - C - 2020-01-11T19:46:25.188+01:00 - - 3.30 - - - - - 2020-01-07T18:28:19.656+01:00 - thermostat - C - 2020-01-07T18:28:19.656+01:00 - - 18.00 - - - - - 2019-10-07T11:03:12.009+02:00 - temperature_offset - C - 2019-08-24T14:54:21.268+02:00 - - 0.00 - - - - - 2020-01-11T19:35:17.473+01:00 - valve_position - - 2020-01-11T19:35:17.473+01:00 - - 1.00 - - - - - 2020-01-11T18:28:37.900+01:00 - battery - - 2020-01-07T18:25:57.269+01:00 - - 1.00 - - - - - - - - 2019-10-07T11:03:12.009+02:00 - temperature_offset - 0 - - - 2020-01-07T18:28:19.657+01:00 - thermostat - 18 - 0 - 99.99 - 0.01 - - - - - - - Bedroom M - - bedroom - 2019-08-23T22:50:21.100+02:00 - 2020-01-11T19:46:25.179+01:00 - - home - - - - - - - 2020-01-07T18:28:15.416+01:00 - thermostat - C - 2019-08-24T14:39:10.425+02:00 - - 18.00 - - - - 2020-01-11T19:46:25.151+01:00 - temperature - C - 2019-09-27T22:39:15.912+02:00 - - 17.43 - - - - - - 2020-01-07T18:28:15.417+01:00 - thermostat - 18 - 0 - 99.99 - 0.01 - - - - - - Thermostatic Radiator Valve 000D6F000B2142D0 - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-08-24T14:24:28.256+02:00 - 2020-01-11T19:40:42.852+01:00 - - - - - - 2020-01-11T19:40:42.840+01:00 - temperature - C - 2020-01-11T19:40:42.840+01:00 - - 19.41 - - - - - 2020-01-11T19:40:42.840+01:00 - uncorrected_temperature - C - 2020-01-11T19:40:42.840+01:00 - - 19.41 - - - - - 2020-01-11T19:41:10.299+01:00 - temperature_difference - C - 2020-01-11T19:26:41.855+01:00 - - 1.60 - - - - - 2019-10-05T01:43:16.560+02:00 - temperature_offset - C - 2019-08-26T19:48:00.676+02:00 - - 0.00 - - - - - 2020-01-11T19:36:53.215+01:00 - valve_position - - 2020-01-11T15:45:17.502+01:00 - - 1.00 - - - - - 2020-01-11T09:27:15.691+01:00 - battery - - 2020-01-11T09:27:15.691+01:00 - - 0.67 - - - - - 2020-01-10T16:00:24.100+01:00 - thermostat - C - 2020-01-10T16:00:24.100+01:00 - - 20.00 - - - - - - - - 2019-10-05T01:43:16.560+02:00 - temperature_offset - 0 - - - 2020-01-10T16:00:24.101+01:00 - thermostat - 20 - 0 - 99.99 - 0.01 - - - - - - - Bathroom - - bathroom - 2019-10-05T01:03:10.423+02:00 - 2020-01-11T19:37:13.733+01:00 - - asleep - - - - - - - 2020-01-11T11:00:00.442+01:00 - thermostat - C - - - 17.00 - - - - 2020-01-11T19:37:13.718+01:00 - temperature - C - - - 19.31 - - - - - - 2020-01-11T11:00:00.443+01:00 - thermostat - 17 - 0 - 99.99 - 0.01 - - - - - - OpenThermGateway - An OpenTherm Gateway - open_therm_gateway - 2017-08-10T11:57:37.012+02:00 - 2019-08-05T14:16:28.504+02:00 - - - - - 2019-10-05T01:30:50.083+02:00 - open_therm_power_mode - - 2019-08-05T14:16:28.485+02:00 - - 0 - - - - - 2019-10-05T01:30:45.187+02:00 - override_mode - - 2018-11-16T11:01:47.010+01:00 - - on - - - - - - - - Gateway D40FB201C486 - Container for variables logged about the Gateway in general. - gateway - 2018-11-16T11:01:51.093+01:00 - 2019-10-05T01:30:42.439+02:00 - - - - - 2019-10-05T01:06:35.127+02:00 - link_quality - - 2019-10-05T01:01:34.864+02:00 - - 66 - - - - - 2019-10-05T01:30:48.063+02:00 - lan_state - - 2019-10-05T01:01:10.369+02:00 - - up - - - - - 2019-10-05T01:30:39.480+02:00 - wlan_ip_address - - 2019-10-05T01:22:18+02:00 - - 0.0.0.0 - - - - - 2019-10-05T01:30:42.422+02:00 - wlan_state - - 2019-10-05T01:30:42.422+02:00 - - down - - - - - 2019-10-05T01:06:35.127+02:00 - signal_strength - dBm - 2019-10-05T01:01:34.864+02:00 - - -44.00 - - - - - 2019-10-05T01:30:48.063+02:00 - lan_ip_address - - 2019-08-24T21:27:04+02:00 - - 127.0.0.1 - - - - - - - - Central heating boiler - - heater_central - 2019-08-23T16:01:45.503+02:00 - 2020-01-11T19:08:22.971+01:00 - - - - - 2020-01-11T17:10:11+01:00 - burner_efficiency - s - 2020-01-11T17:10:11+01:00 - - 4899 - - - - - 2019-10-05T01:09:39.631+02:00 - modulation_level - - 2019-10-05T01:09:39.631+02:00 - - 0.00 - - - - - 2020-01-11T15:00:00+01:00 - burner_efficiency - s - 2020-01-11T15:00:00+01:00 - PT1H - - 4979 - - - - - 2019-08-23T16:01:52.608+02:00 - heating_curve_high_temperature - C - 2019-08-23T16:01:52.608+02:00 - - 20.00 - - - - - - intended_central_heating_state - - - - - - 2020-01-11T19:08:22.971+01:00 - intended_boiler_temperature - C - 2020-01-11T17:10:11.608+01:00 - - 80.00 - - - - - 2019-08-23T16:01:50.724+02:00 - heating_curve_low_temperature - C - 2019-08-23T16:01:50.724+02:00 - - -10.00 - - - - - 2020-01-11T19:00:00+01:00 - boiler_temperature - C - 2020-01-15T04:00:00+01:00 - - 80.00 - - - - - 2019-08-24T14:59:03.941+02:00 - regulation_state - - 2019-08-24T14:59:03.941+02:00 - - on - - - - - - burner_operation_time - s - - PT1H - - - - 2020-01-11T17:10:11.623+01:00 - central_heating_state - - 2020-01-11T17:10:11.623+01:00 - - on - - - - - 2019-08-23T16:01:53.606+02:00 - heating_curve_high_setpoint - C - 2019-08-23T16:01:53.606+02:00 - - 80.00 - - - - - 2019-08-23T16:01:51.636+02:00 - heating_curve_low_setpoint - C - 2019-08-23T16:01:51.636+02:00 - - 80.00 - - - - - - - 2019-08-23T16:01:52.609+02:00 - heating_curve_high_temperature - 20 - 10 - 40 - 1 - - - - - 2019-08-23T16:01:50.725+02:00 - heating_curve_low_temperature - -10 - -30 - 10 - 1 - - - - - - 2019-08-24T14:59:03.941+02:00 - regulation_state - on - - - 2019-08-23T16:01:51.637+02:00 - heating_curve_low_setpoint - 80 - 10 - 90 - 1 - - - - - 2019-08-23T16:01:53.607+02:00 - heating_curve_high_setpoint - 80 - 20 - 90 - 1 - - - - - - - Thermostatic Radiator Valve 000D6F000C96A82F - A thermostatic radiator valve allows hot water to be pumped into its radiator based on ambient temperature and the local temperature setpoint. - thermostatic_radiator_valve - 2019-08-24T12:57:33.457+02:00 - 2020-01-11T19:42:16.730+01:00 - - - - - - 2020-01-11T19:29:20.576+01:00 - valve_position - - 2020-01-11T11:45:19.456+01:00 - - 0.00 - - - - - 2020-01-11T19:42:16.724+01:00 - temperature - C - 2020-01-11T19:42:16.724+01:00 - - 22.42 - - - - - 2020-01-11T19:29:10.067+01:00 - temperature_difference - C - 2020-01-11T19:29:10.067+01:00 - - 0.40 - - - - - 2020-01-11T09:00:00.867+01:00 - thermostat - C - 2020-01-11T09:00:00.867+01:00 - - 20.00 - - - - - 2019-10-05T01:33:59.209+02:00 - temperature_offset - C - 2019-08-24T12:57:39.689+02:00 - - 0.00 - - - - - 2020-01-11T19:42:16.724+01:00 - uncorrected_temperature - C - 2020-01-11T19:42:16.724+01:00 - - 22.42 - - - - - - - - 2019-10-05T01:33:59.209+02:00 - temperature_offset - 0 - - - 2020-01-11T09:00:00.868+01:00 - thermostat - 20 - 0 - 99.99 - 0.01 - - - - - - - diff --git a/userdata/adam_living_floor_plus_3_rooms/core.domain_objects.xml b/userdata/adam_living_floor_plus_3_rooms/core.domain_objects.xml deleted file mode 100644 index 5edc325bd..000000000 --- a/userdata/adam_living_floor_plus_3_rooms/core.domain_objects.xml +++ /dev/null @@ -1,1736 +0,0 @@ - - - - - - - - 2018-11-16T11:01:42.940+01:00 - 2018-11-16T11:01:45.126+01:00 - - - - - - - - - - - - - - - - - - - - - Thermostat presets - Provides presets for a Location. -