Bump plugwise to v0.18.2 (#71731)

This commit is contained in:
Bouwe Westerdijk 2022-05-12 15:19:50 +02:00 committed by GitHub
parent a0f741778a
commit 5a7624bfd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 210 additions and 342 deletions

View File

@ -31,7 +31,7 @@ async def async_setup_entry(
async_add_entities( async_add_entities(
PlugwiseClimateEntity(coordinator, device_id) PlugwiseClimateEntity(coordinator, device_id)
for device_id, device in coordinator.data.devices.items() for device_id, device in coordinator.data.devices.items()
if device["class"] in THERMOSTAT_CLASSES if device["dev_class"] in THERMOSTAT_CLASSES
) )
@ -53,9 +53,9 @@ class PlugwiseClimateEntity(PlugwiseEntity, ClimateEntity):
# Determine preset modes # Determine preset modes
self._attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE self._attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
if presets := self.device.get("presets"): if presets := self.device.get("preset_modes"):
self._attr_supported_features |= ClimateEntityFeature.PRESET_MODE self._attr_supported_features |= ClimateEntityFeature.PRESET_MODE
self._attr_preset_modes = list(presets) self._attr_preset_modes = presets
# Determine hvac modes and current hvac mode # Determine hvac modes and current hvac mode
self._attr_hvac_modes = [HVACMode.HEAT] self._attr_hvac_modes = [HVACMode.HEAT]

View File

@ -1,51 +1,53 @@
"""Constants for Plugwise component.""" """Constants for Plugwise component."""
from __future__ import annotations
from datetime import timedelta from datetime import timedelta
import logging import logging
from typing import Final
from homeassistant.const import Platform from homeassistant.const import Platform
DOMAIN = "plugwise" DOMAIN: Final = "plugwise"
LOGGER = logging.getLogger(__package__) LOGGER = logging.getLogger(__package__)
API = "api" API: Final = "api"
FLOW_SMILE = "smile (Adam/Anna/P1)" FLOW_SMILE: Final = "smile (Adam/Anna/P1)"
FLOW_STRETCH = "stretch (Stretch)" FLOW_STRETCH: Final = "stretch (Stretch)"
FLOW_TYPE = "flow_type" FLOW_TYPE: Final = "flow_type"
GATEWAY = "gateway" GATEWAY: Final = "gateway"
PW_TYPE = "plugwise_type" PW_TYPE: Final = "plugwise_type"
SMILE = "smile" SMILE: Final = "smile"
STRETCH = "stretch" STRETCH: Final = "stretch"
STRETCH_USERNAME = "stretch" STRETCH_USERNAME: Final = "stretch"
UNIT_LUMEN = "lm" UNIT_LUMEN: Final = "lm"
PLATFORMS_GATEWAY = [ PLATFORMS_GATEWAY: Final[list[str]] = [
Platform.BINARY_SENSOR, Platform.BINARY_SENSOR,
Platform.CLIMATE, Platform.CLIMATE,
Platform.SENSOR, Platform.SENSOR,
Platform.SWITCH,
Platform.SELECT, Platform.SELECT,
Platform.SWITCH,
] ]
ZEROCONF_MAP = { ZEROCONF_MAP: Final[dict[str, str]] = {
"smile": "P1", "smile": "P1",
"smile_thermo": "Anna", "smile_thermo": "Anna",
"smile_open_therm": "Adam", "smile_open_therm": "Adam",
"stretch": "Stretch", "stretch": "Stretch",
} }
# Default directives # Default directives
DEFAULT_MAX_TEMP = 30 DEFAULT_MAX_TEMP: Final = 30
DEFAULT_MIN_TEMP = 4 DEFAULT_MIN_TEMP: Final = 4
DEFAULT_PORT = 80 DEFAULT_PORT: Final = 80
DEFAULT_SCAN_INTERVAL = { DEFAULT_SCAN_INTERVAL: Final[dict[str, timedelta]] = {
"power": timedelta(seconds=10), "power": timedelta(seconds=10),
"stretch": timedelta(seconds=60), "stretch": timedelta(seconds=60),
"thermostat": timedelta(seconds=60), "thermostat": timedelta(seconds=60),
} }
DEFAULT_USERNAME = "smile" DEFAULT_USERNAME: Final = "smile"
THERMOSTAT_CLASSES = [ THERMOSTAT_CLASSES: Final[list[str]] = [
"thermostat", "thermostat",
"thermostatic_radiator_valve", "thermostatic_radiator_valve",
"zone_thermometer", "zone_thermometer",

View File

@ -45,8 +45,8 @@ class PlugwiseEntity(CoordinatorEntity[PlugwiseDataUpdateCoordinator]):
manufacturer=data.get("vendor"), manufacturer=data.get("vendor"),
model=data.get("model"), model=data.get("model"),
name=f"Smile {coordinator.data.gateway['smile_name']}", name=f"Smile {coordinator.data.gateway['smile_name']}",
sw_version=data.get("fw"), sw_version=data.get("firmware"),
hw_version=data.get("hw"), hw_version=data.get("hardware"),
) )
if device_id != coordinator.data.gateway["gateway_id"]: if device_id != coordinator.data.gateway["gateway_id"]:

View File

@ -113,7 +113,7 @@ def migrate_sensor_entities(
# Migrating opentherm_outdoor_temperature to opentherm_outdoor_air_temperature sensor # Migrating opentherm_outdoor_temperature to opentherm_outdoor_air_temperature sensor
for device_id, device in coordinator.data.devices.items(): for device_id, device in coordinator.data.devices.items():
if device["class"] != "heater_central": if device["dev_class"] != "heater_central":
continue continue
old_unique_id = f"{device_id}-outdoor_temperature" old_unique_id = f"{device_id}-outdoor_temperature"

View File

@ -2,7 +2,7 @@
"domain": "plugwise", "domain": "plugwise",
"name": "Plugwise", "name": "Plugwise",
"documentation": "https://www.home-assistant.io/integrations/plugwise", "documentation": "https://www.home-assistant.io/integrations/plugwise",
"requirements": ["plugwise==0.17.3"], "requirements": ["plugwise==0.18.2"],
"codeowners": ["@CoMPaTech", "@bouwew", "@brefra", "@frenck"], "codeowners": ["@CoMPaTech", "@bouwew", "@brefra", "@frenck"],
"zeroconf": ["_plugwise._tcp.local."], "zeroconf": ["_plugwise._tcp.local."],
"config_flow": true, "config_flow": true,

View File

@ -1242,7 +1242,7 @@ plexauth==0.0.6
plexwebsocket==0.0.13 plexwebsocket==0.0.13
# homeassistant.components.plugwise # homeassistant.components.plugwise
plugwise==0.17.3 plugwise==0.18.2
# homeassistant.components.plum_lightpad # homeassistant.components.plum_lightpad
plumlightpad==0.0.11 plumlightpad==0.0.11

View File

@ -838,7 +838,7 @@ plexauth==0.0.6
plexwebsocket==0.0.13 plexwebsocket==0.0.13
# homeassistant.components.plugwise # homeassistant.components.plugwise
plugwise==0.17.3 plugwise==0.18.2
# homeassistant.components.plum_lightpad # homeassistant.components.plum_lightpad
plumlightpad==0.0.11 plumlightpad==0.0.11

View File

@ -12,26 +12,19 @@
}, },
{ {
"df4a4a8169904cdb9c03d61a21f42140": { "df4a4a8169904cdb9c03d61a21f42140": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-10-27T02:00:00+02:00", "firmware": "2016-10-27T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "12493538af164a409c6a1c79e38afe1c", "location": "12493538af164a409c6a1c79e38afe1c",
"mac_address": null,
"model": "Lisa", "model": "Lisa",
"name": "Zone Lisa Bios", "name": "Zone Lisa Bios",
"zigbee_mac_address": "ABCD012345670A06",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "away", "active_preset": "away",
"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]
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -41,7 +34,7 @@
], ],
"selected_schedule": "None", "selected_schedule": "None",
"last_used": "Badkamer Schema", "last_used": "Badkamer Schema",
"schedule_temperature": 15.0, "schedule_temperature": 0.0,
"mode": "heat", "mode": "heat",
"sensors": { "sensors": {
"temperature": 16.5, "temperature": 16.5,
@ -50,13 +43,13 @@
} }
}, },
"b310b72a0e354bfab43089919b9a88bf": { "b310b72a0e354bfab43089919b9a88bf": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mac_address": null,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Floor kraan", "name": "Floor kraan",
"zigbee_mac_address": "ABCD012345670A02",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -69,13 +62,13 @@
} }
}, },
"a2c3583e0a6349358998b760cea82d2a": { "a2c3583e0a6349358998b760cea82d2a": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "12493538af164a409c6a1c79e38afe1c", "location": "12493538af164a409c6a1c79e38afe1c",
"mac_address": null,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Bios Cv Thermostatic Radiator ", "name": "Bios Cv Thermostatic Radiator ",
"zigbee_mac_address": "ABCD012345670A09",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -89,26 +82,19 @@
} }
}, },
"b59bcebaf94b499ea7d46e4a66fb62d8": { "b59bcebaf94b499ea7d46e4a66fb62d8": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-08-02T02:00:00+02:00", "firmware": "2016-08-02T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mac_address": null,
"model": "Lisa", "model": "Lisa",
"name": "Zone Lisa WK", "name": "Zone Lisa WK",
"zigbee_mac_address": "ABCD012345670A07",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "home", "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]
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -118,7 +104,7 @@
], ],
"selected_schedule": "GF7 Woonkamer", "selected_schedule": "GF7 Woonkamer",
"last_used": "GF7 Woonkamer", "last_used": "GF7 Woonkamer",
"schedule_temperature": 20.0, "schedule_temperature": 15.0,
"mode": "auto", "mode": "auto",
"sensors": { "sensors": {
"temperature": 20.9, "temperature": 20.9,
@ -127,15 +113,15 @@
} }
}, },
"fe799307f1624099878210aa0b9f1475": { "fe799307f1624099878210aa0b9f1475": {
"class": "gateway", "dev_class": "gateway",
"fw": "3.0.15", "firmware": "3.0.15",
"hw": "AME Smile 2.0 board", "hardware": "AME Smile 2.0 board",
"location": "1f9dcf83fd4e4b66b72ff787957bfe5d", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d",
"mac_address": "012345670001", "mac_address": "012345670001",
"model": "Adam", "model": "Adam",
"name": "Adam", "name": "Adam",
"vendor": "Plugwise B.V.",
"zigbee_mac_address": "ABCD012345670101", "zigbee_mac_address": "ABCD012345670101",
"vendor": "Plugwise B.V.",
"regulation_mode": "heating", "regulation_mode": "heating",
"regulation_modes": [], "regulation_modes": [],
"binary_sensors": { "binary_sensors": {
@ -146,13 +132,13 @@
} }
}, },
"d3da73bde12a47d5a6b8f9dad971f2ec": { "d3da73bde12a47d5a6b8f9dad971f2ec": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "82fa13f017d240daa0d0ea1775420f24", "location": "82fa13f017d240daa0d0ea1775420f24",
"mac_address": null,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Thermostatic Radiator Jessie", "name": "Thermostatic Radiator Jessie",
"zigbee_mac_address": "ABCD012345670A10",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -166,15 +152,13 @@
} }
}, },
"21f2b542c49845e6bb416884c55778d6": { "21f2b542c49845e6bb416884c55778d6": {
"class": "game_console", "dev_class": "game_console",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "Playstation Smart Plug", "name": "Playstation Smart Plug",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A12", "zigbee_mac_address": "ABCD012345670A12",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 82.6, "electricity_consumed": 82.6,
"electricity_consumed_interval": 8.6, "electricity_consumed_interval": 8.6,
@ -187,15 +171,13 @@
} }
}, },
"78d1126fc4c743db81b61c20e88342a7": { "78d1126fc4c743db81b61c20e88342a7": {
"class": "central_heating_pump", "dev_class": "central_heating_pump",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "CV Pomp", "name": "CV Pomp",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A05", "zigbee_mac_address": "ABCD012345670A05",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 35.6, "electricity_consumed": 35.6,
"electricity_consumed_interval": 7.37, "electricity_consumed_interval": 7.37,
@ -207,14 +189,10 @@
} }
}, },
"90986d591dcd426cae3ec3e8111ff730": { "90986d591dcd426cae3ec3e8111ff730": {
"class": "heater_central", "dev_class": "heater_central",
"fw": null,
"hw": null,
"location": "1f9dcf83fd4e4b66b72ff787957bfe5d", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d",
"mac_address": null,
"model": "Unknown", "model": "Unknown",
"name": "OnOff", "name": "OnOff",
"vendor": null,
"binary_sensors": { "binary_sensors": {
"heating_state": true "heating_state": true
}, },
@ -225,15 +203,13 @@
} }
}, },
"cd0ddb54ef694e11ac18ed1cbce5dbbd": { "cd0ddb54ef694e11ac18ed1cbce5dbbd": {
"class": "vcr", "dev_class": "vcr",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "NAS", "name": "NAS",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A14", "zigbee_mac_address": "ABCD012345670A14",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 16.5, "electricity_consumed": 16.5,
"electricity_consumed_interval": 0.5, "electricity_consumed_interval": 0.5,
@ -246,15 +222,13 @@
} }
}, },
"4a810418d5394b3f82727340b91ba740": { "4a810418d5394b3f82727340b91ba740": {
"class": "router", "dev_class": "router",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "USG Smart Plug", "name": "USG Smart Plug",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A16", "zigbee_mac_address": "ABCD012345670A16",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 8.5, "electricity_consumed": 8.5,
"electricity_consumed_interval": 0.0, "electricity_consumed_interval": 0.0,
@ -267,15 +241,13 @@
} }
}, },
"02cf28bfec924855854c544690a609ef": { "02cf28bfec924855854c544690a609ef": {
"class": "vcr", "dev_class": "vcr",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "NVR", "name": "NVR",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A15", "zigbee_mac_address": "ABCD012345670A15",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 34.0, "electricity_consumed": 34.0,
"electricity_consumed_interval": 9.15, "electricity_consumed_interval": 9.15,
@ -288,15 +260,13 @@
} }
}, },
"a28f588dc4a049a483fd03a30361ad3a": { "a28f588dc4a049a483fd03a30361ad3a": {
"class": "settop", "dev_class": "settop",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "Fibaro HC2", "name": "Fibaro HC2",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A13", "zigbee_mac_address": "ABCD012345670A13",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 12.5, "electricity_consumed": 12.5,
"electricity_consumed_interval": 3.8, "electricity_consumed_interval": 3.8,
@ -309,26 +279,19 @@
} }
}, },
"6a3bf693d05e48e0b460c815a4fdd09d": { "6a3bf693d05e48e0b460c815a4fdd09d": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-10-27T02:00:00+02:00", "firmware": "2016-10-27T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "82fa13f017d240daa0d0ea1775420f24", "location": "82fa13f017d240daa0d0ea1775420f24",
"mac_address": null,
"model": "Lisa", "model": "Lisa",
"name": "Zone Thermostat Jessie", "name": "Zone Thermostat Jessie",
"zigbee_mac_address": "ABCD012345670A03",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "asleep", "active_preset": "asleep",
"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]
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -347,13 +310,13 @@
} }
}, },
"680423ff840043738f42cc7f1ff97a36": { "680423ff840043738f42cc7f1ff97a36": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "08963fec7c53423ca5680aa4cb502c63", "location": "08963fec7c53423ca5680aa4cb502c63",
"mac_address": null,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Thermostatic Radiator Badkamer", "name": "Thermostatic Radiator Badkamer",
"zigbee_mac_address": "ABCD012345670A17",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -367,26 +330,19 @@
} }
}, },
"f1fee6043d3642a9b0a65297455f008e": { "f1fee6043d3642a9b0a65297455f008e": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-10-27T02:00:00+02:00", "firmware": "2016-10-27T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "08963fec7c53423ca5680aa4cb502c63", "location": "08963fec7c53423ca5680aa4cb502c63",
"mac_address": null,
"model": "Lisa", "model": "Lisa",
"name": "Zone Thermostat Badkamer", "name": "Zone Thermostat Badkamer",
"zigbee_mac_address": "ABCD012345670A08",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "away", "active_preset": "away",
"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]
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -405,15 +361,13 @@
} }
}, },
"675416a629f343c495449970e2ca37b5": { "675416a629f343c495449970e2ca37b5": {
"class": "router", "dev_class": "router",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": null,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": null,
"model": "Plug", "model": "Plug",
"name": "Ziggo Modem", "name": "Ziggo Modem",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A01", "zigbee_mac_address": "ABCD012345670A01",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 12.2, "electricity_consumed": 12.2,
"electricity_consumed_interval": 2.97, "electricity_consumed_interval": 2.97,
@ -426,26 +380,19 @@
} }
}, },
"e7693eb9582644e5b865dba8d4447cf1": { "e7693eb9582644e5b865dba8d4447cf1": {
"class": "thermostatic_radiator_valve", "dev_class": "thermostatic_radiator_valve",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "446ac08dd04d4eff8ac57489757b7314", "location": "446ac08dd04d4eff8ac57489757b7314",
"mac_address": null,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "CV Kraan Garage", "name": "CV Kraan Garage",
"zigbee_mac_address": "ABCD012345670A11",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "no_frost", "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]
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -455,7 +402,7 @@
], ],
"selected_schedule": "None", "selected_schedule": "None",
"last_used": "Badkamer Schema", "last_used": "Badkamer Schema",
"schedule_temperature": 15.0, "schedule_temperature": 0.0,
"mode": "heat", "mode": "heat",
"sensors": { "sensors": {
"temperature": 15.6, "temperature": 15.6,

View File

@ -8,19 +8,16 @@
}, },
{ {
"1cbf783bb11e4a7c8a6843dee3a86927": { "1cbf783bb11e4a7c8a6843dee3a86927": {
"class": "heater_central", "dev_class": "heater_central",
"fw": null,
"hw": null,
"location": "a57efe5f145f498c9be62a9b63626fbf", "location": "a57efe5f145f498c9be62a9b63626fbf",
"mac_address": null,
"model": "Generic heater", "model": "Generic heater",
"name": "OpenTherm", "name": "OpenTherm",
"vendor": "Techneco", "vendor": "Techneco",
"maximum_boiler_temperature": 60.0, "maximum_boiler_temperature": 60.0,
"compressor_state": true,
"binary_sensors": { "binary_sensors": {
"dhw_state": false, "dhw_state": false,
"heating_state": true, "heating_state": true,
"compressor_state": true,
"cooling_state": false, "cooling_state": false,
"slave_boiler_state": false, "slave_boiler_state": false,
"flame_state": false "flame_state": false
@ -38,9 +35,9 @@
} }
}, },
"015ae9ea3f964e668e490fa39da3870b": { "015ae9ea3f964e668e490fa39da3870b": {
"class": "gateway", "dev_class": "gateway",
"fw": "4.0.15", "firmware": "4.0.15",
"hw": "AME Smile 2.0 board", "hardware": "AME Smile 2.0 board",
"location": "a57efe5f145f498c9be62a9b63626fbf", "location": "a57efe5f145f498c9be62a9b63626fbf",
"mac_address": "012345670001", "mac_address": "012345670001",
"model": "Anna", "model": "Anna",
@ -54,11 +51,10 @@
} }
}, },
"3cb70739631c4d17a86b8b12e8a5161b": { "3cb70739631c4d17a86b8b12e8a5161b": {
"class": "thermostat", "dev_class": "thermostat",
"fw": "2018-02-08T11:15:53+01:00", "firmware": "2018-02-08T11:15:53+01:00",
"hw": "6539-1301-5002", "hardware": "6539-1301-5002",
"location": "c784ee9fdab44e1395b8dee7d7a497d5", "location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mac_address": null,
"model": "Anna", "model": "Anna",
"name": "Anna", "name": "Anna",
"vendor": "Plugwise", "vendor": "Plugwise",
@ -67,13 +63,6 @@
"resolution": 0.1, "resolution": 0.1,
"preset_modes": ["no_frost", "home", "away", "asleep", "vacation"], "preset_modes": ["no_frost", "home", "away", "asleep", "vacation"],
"active_preset": "home", "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]
},
"available_schedules": ["None"], "available_schedules": ["None"],
"selected_schedule": "None", "selected_schedule": "None",
"last_used": null, "last_used": null,

View File

@ -6,9 +6,9 @@
}, },
{ {
"e950c7d5e1ee407a858e2a8b5016c8b3": { "e950c7d5e1ee407a858e2a8b5016c8b3": {
"class": "gateway", "dev_class": "gateway",
"fw": "3.3.9", "firmware": "3.3.9",
"hw": "AME Smile 2.0 board", "hardware": "AME Smile 2.0 board",
"location": "cd3e822288064775a7c4afcdd70bdda2", "location": "cd3e822288064775a7c4afcdd70bdda2",
"mac_address": "012345670001", "mac_address": "012345670001",
"model": "P1", "model": "P1",

View File

@ -6,26 +6,24 @@
}, },
{ {
"0000aaaa0000aaaa0000aaaa0000aa00": { "0000aaaa0000aaaa0000aaaa0000aa00": {
"class": "gateway", "dev_class": "gateway",
"fw": "3.1.11", "firmware": "3.1.11",
"hw": null,
"mac_address": "01:23:45:67:89:AB",
"location": "0000aaaa0000aaaa0000aaaa0000aa00", "location": "0000aaaa0000aaaa0000aaaa0000aa00",
"vendor": "Plugwise B.V.", "mac_address": "01:23:45:67:89:AB",
"model": "Stretch", "model": "Stretch",
"name": "Stretch", "name": "Stretch",
"vendor": "Plugwise B.V.",
"zigbee_mac_address": "ABCD012345670101" "zigbee_mac_address": "ABCD012345670101"
}, },
"5871317346d045bc9f6b987ef25ee638": { "5871317346d045bc9f6b987ef25ee638": {
"class": "water_heater_vessel", "dev_class": "water_heater_vessel",
"fw": "2011-06-27T10:52:18+02:00", "firmware": "2011-06-27T10:52:18+02:00",
"hw": "6539-0701-4028", "hardware": "6539-0701-4028",
"location": "0000aaaa0000aaaa0000aaaa0000aa00", "location": "0000aaaa0000aaaa0000aaaa0000aa00",
"mac_address": null,
"model": "Circle type F", "model": "Circle type F",
"name": "Boiler (1EB31)", "name": "Boiler (1EB31)",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A07", "zigbee_mac_address": "ABCD012345670A07",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 1.19, "electricity_consumed": 1.19,
"electricity_consumed_interval": 0.0, "electricity_consumed_interval": 0.0,
@ -37,13 +35,13 @@
} }
}, },
"e1c884e7dede431dadee09506ec4f859": { "e1c884e7dede431dadee09506ec4f859": {
"class": "refrigerator", "dev_class": "refrigerator",
"fw": "2011-06-27T10:47:37+02:00", "firmware": "2011-06-27T10:47:37+02:00",
"hw": "6539-0700-7330", "hardware": "6539-0700-7330",
"location": "0000aaaa0000aaaa0000aaaa0000aa00", "location": "0000aaaa0000aaaa0000aaaa0000aa00",
"mac_address": null,
"model": "Circle+ type F", "model": "Circle+ type F",
"name": "Koelkast (92C4A)", "name": "Koelkast (92C4A)",
"zigbee_mac_address": "0123456789AB",
"vendor": "Plugwise", "vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 50.5, "electricity_consumed": 50.5,
@ -56,15 +54,14 @@
} }
}, },
"aac7b735042c4832ac9ff33aae4f453b": { "aac7b735042c4832ac9ff33aae4f453b": {
"class": "dishwasher", "dev_class": "dishwasher",
"fw": "2011-06-27T10:52:18+02:00", "firmware": "2011-06-27T10:52:18+02:00",
"hw": "6539-0701-4022", "hardware": "6539-0701-4022",
"location": "0000aaaa0000aaaa0000aaaa0000aa00", "location": "0000aaaa0000aaaa0000aaaa0000aa00",
"mac_address": null,
"model": "Circle type F", "model": "Circle type F",
"name": "Vaatwasser (2a1ab)", "name": "Vaatwasser (2a1ab)",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A02", "zigbee_mac_address": "ABCD012345670A02",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 0.0, "electricity_consumed": 0.0,
"electricity_consumed_interval": 0.71, "electricity_consumed_interval": 0.71,
@ -76,15 +73,14 @@
} }
}, },
"cfe95cf3de1948c0b8955125bf754614": { "cfe95cf3de1948c0b8955125bf754614": {
"class": "dryer", "dev_class": "dryer",
"fw": "2011-06-27T10:52:18+02:00", "firmware": "2011-06-27T10:52:18+02:00",
"hw": "0000-0440-0107", "hardware": "0000-0440-0107",
"location": "0000aaaa0000aaaa0000aaaa0000aa00", "location": "0000aaaa0000aaaa0000aaaa0000aa00",
"mac_address": null,
"model": "Circle type F", "model": "Circle type F",
"name": "Droger (52559)", "name": "Droger (52559)",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A04", "zigbee_mac_address": "ABCD012345670A04",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 0.0, "electricity_consumed": 0.0,
"electricity_consumed_interval": 0.0, "electricity_consumed_interval": 0.0,
@ -96,15 +92,14 @@
} }
}, },
"059e4d03c7a34d278add5c7a4a781d19": { "059e4d03c7a34d278add5c7a4a781d19": {
"class": "washingmachine", "dev_class": "washingmachine",
"fw": "2011-06-27T10:52:18+02:00", "firmware": "2011-06-27T10:52:18+02:00",
"hw": "0000-0440-0107", "hardware": "0000-0440-0107",
"location": "0000aaaa0000aaaa0000aaaa0000aa00", "location": "0000aaaa0000aaaa0000aaaa0000aa00",
"mac_address": null,
"model": "Circle type F", "model": "Circle type F",
"name": "Wasmachine (52AC1)", "name": "Wasmachine (52AC1)",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A01", "zigbee_mac_address": "ABCD012345670A01",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 0.0, "electricity_consumed": 0.0,
"electricity_consumed_interval": 0.0, "electricity_consumed_interval": 0.0,
@ -116,22 +111,16 @@
} }
}, },
"71e1944f2a944b26ad73323e399efef0": { "71e1944f2a944b26ad73323e399efef0": {
"class": "switching", "dev_class": "switching",
"fw": null,
"location": null,
"model": "Switchgroup", "model": "Switchgroup",
"name": "Test", "name": "Test",
"members": ["5ca521ac179d468e91d772eeeb8a2117"], "members": ["5ca521ac179d468e91d772eeeb8a2117"],
"types": ["switch_group"],
"vendor": null,
"switches": { "switches": {
"relay": true "relay": true
} }
}, },
"d950b314e9d8499f968e6db8d82ef78c": { "d950b314e9d8499f968e6db8d82ef78c": {
"class": "report", "dev_class": "report",
"fw": null,
"location": null,
"model": "Switchgroup", "model": "Switchgroup",
"name": "Stroomvreters", "name": "Stroomvreters",
"members": [ "members": [
@ -141,24 +130,18 @@
"cfe95cf3de1948c0b8955125bf754614", "cfe95cf3de1948c0b8955125bf754614",
"e1c884e7dede431dadee09506ec4f859" "e1c884e7dede431dadee09506ec4f859"
], ],
"types": ["switch_group"],
"vendor": null,
"switches": { "switches": {
"relay": true "relay": true
} }
}, },
"d03738edfcc947f7b8f4573571d90d2d": { "d03738edfcc947f7b8f4573571d90d2d": {
"class": "switching", "dev_class": "switching",
"fw": null,
"location": null,
"model": "Switchgroup", "model": "Switchgroup",
"name": "Schakel", "name": "Schakel",
"members": [ "members": [
"059e4d03c7a34d278add5c7a4a781d19", "059e4d03c7a34d278add5c7a4a781d19",
"cfe95cf3de1948c0b8955125bf754614" "cfe95cf3de1948c0b8955125bf754614"
], ],
"types": ["switch_group"],
"vendor": null,
"switches": { "switches": {
"relay": true "relay": true
} }

View File

@ -32,26 +32,19 @@ async def test_diagnostics(
}, },
"devices": { "devices": {
"df4a4a8169904cdb9c03d61a21f42140": { "df4a4a8169904cdb9c03d61a21f42140": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-10-27T02:00:00+02:00", "firmware": "2016-10-27T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "12493538af164a409c6a1c79e38afe1c", "location": "12493538af164a409c6a1c79e38afe1c",
"mac_address": None,
"model": "Lisa", "model": "Lisa",
"name": "Zone Lisa Bios", "name": "Zone Lisa Bios",
"zigbee_mac_address": "ABCD012345670A06",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "away", "active_preset": "away",
"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],
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -61,18 +54,18 @@ async def test_diagnostics(
], ],
"selected_schedule": "None", "selected_schedule": "None",
"last_used": "Badkamer Schema", "last_used": "Badkamer Schema",
"schedule_temperature": 15.0, "schedule_temperature": 0.0,
"mode": "heat", "mode": "heat",
"sensors": {"temperature": 16.5, "setpoint": 13.0, "battery": 67}, "sensors": {"temperature": 16.5, "setpoint": 13.0, "battery": 67},
}, },
"b310b72a0e354bfab43089919b9a88bf": { "b310b72a0e354bfab43089919b9a88bf": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mac_address": None,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Floor kraan", "name": "Floor kraan",
"zigbee_mac_address": "ABCD012345670A02",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -85,13 +78,13 @@ async def test_diagnostics(
}, },
}, },
"a2c3583e0a6349358998b760cea82d2a": { "a2c3583e0a6349358998b760cea82d2a": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "12493538af164a409c6a1c79e38afe1c", "location": "12493538af164a409c6a1c79e38afe1c",
"mac_address": None,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Bios Cv Thermostatic Radiator ", "name": "Bios Cv Thermostatic Radiator ",
"zigbee_mac_address": "ABCD012345670A09",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -105,26 +98,19 @@ async def test_diagnostics(
}, },
}, },
"b59bcebaf94b499ea7d46e4a66fb62d8": { "b59bcebaf94b499ea7d46e4a66fb62d8": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-08-02T02:00:00+02:00", "firmware": "2016-08-02T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mac_address": None,
"model": "Lisa", "model": "Lisa",
"name": "Zone Lisa WK", "name": "Zone Lisa WK",
"zigbee_mac_address": "ABCD012345670A07",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "home", "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],
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -134,33 +120,33 @@ async def test_diagnostics(
], ],
"selected_schedule": "GF7 Woonkamer", "selected_schedule": "GF7 Woonkamer",
"last_used": "GF7 Woonkamer", "last_used": "GF7 Woonkamer",
"schedule_temperature": 20.0, "schedule_temperature": 15.0,
"mode": "auto", "mode": "auto",
"sensors": {"temperature": 20.9, "setpoint": 21.5, "battery": 34}, "sensors": {"temperature": 20.9, "setpoint": 21.5, "battery": 34},
}, },
"fe799307f1624099878210aa0b9f1475": { "fe799307f1624099878210aa0b9f1475": {
"class": "gateway", "dev_class": "gateway",
"fw": "3.0.15", "firmware": "3.0.15",
"hw": "AME Smile 2.0 board", "hardware": "AME Smile 2.0 board",
"location": "1f9dcf83fd4e4b66b72ff787957bfe5d", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d",
"mac_address": "012345670001", "mac_address": "012345670001",
"model": "Adam", "model": "Adam",
"name": "Adam", "name": "Adam",
"vendor": "Plugwise B.V.",
"zigbee_mac_address": "ABCD012345670101", "zigbee_mac_address": "ABCD012345670101",
"vendor": "Plugwise B.V.",
"regulation_mode": "heating", "regulation_mode": "heating",
"regulation_modes": [], "regulation_modes": [],
"binary_sensors": {"plugwise_notification": True}, "binary_sensors": {"plugwise_notification": True},
"sensors": {"outdoor_temperature": 7.81}, "sensors": {"outdoor_temperature": 7.81},
}, },
"d3da73bde12a47d5a6b8f9dad971f2ec": { "d3da73bde12a47d5a6b8f9dad971f2ec": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "82fa13f017d240daa0d0ea1775420f24", "location": "82fa13f017d240daa0d0ea1775420f24",
"mac_address": None,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Thermostatic Radiator Jessie", "name": "Thermostatic Radiator Jessie",
"zigbee_mac_address": "ABCD012345670A10",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -174,15 +160,13 @@ async def test_diagnostics(
}, },
}, },
"21f2b542c49845e6bb416884c55778d6": { "21f2b542c49845e6bb416884c55778d6": {
"class": "game_console", "dev_class": "game_console",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "Playstation Smart Plug", "name": "Playstation Smart Plug",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A12", "zigbee_mac_address": "ABCD012345670A12",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 82.6, "electricity_consumed": 82.6,
"electricity_consumed_interval": 8.6, "electricity_consumed_interval": 8.6,
@ -192,15 +176,13 @@ async def test_diagnostics(
"switches": {"relay": True, "lock": False}, "switches": {"relay": True, "lock": False},
}, },
"78d1126fc4c743db81b61c20e88342a7": { "78d1126fc4c743db81b61c20e88342a7": {
"class": "central_heating_pump", "dev_class": "central_heating_pump",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "c50f167537524366a5af7aa3942feb1e", "location": "c50f167537524366a5af7aa3942feb1e",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "CV Pomp", "name": "CV Pomp",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A05", "zigbee_mac_address": "ABCD012345670A05",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 35.6, "electricity_consumed": 35.6,
"electricity_consumed_interval": 7.37, "electricity_consumed_interval": 7.37,
@ -210,14 +192,10 @@ async def test_diagnostics(
"switches": {"relay": True}, "switches": {"relay": True},
}, },
"90986d591dcd426cae3ec3e8111ff730": { "90986d591dcd426cae3ec3e8111ff730": {
"class": "heater_central", "dev_class": "heater_central",
"fw": None,
"hw": None,
"location": "1f9dcf83fd4e4b66b72ff787957bfe5d", "location": "1f9dcf83fd4e4b66b72ff787957bfe5d",
"mac_address": None,
"model": "Unknown", "model": "Unknown",
"name": "OnOff", "name": "OnOff",
"vendor": None,
"binary_sensors": {"heating_state": True}, "binary_sensors": {"heating_state": True},
"sensors": { "sensors": {
"water_temperature": 70.0, "water_temperature": 70.0,
@ -226,15 +204,13 @@ async def test_diagnostics(
}, },
}, },
"cd0ddb54ef694e11ac18ed1cbce5dbbd": { "cd0ddb54ef694e11ac18ed1cbce5dbbd": {
"class": "vcr", "dev_class": "vcr",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "NAS", "name": "NAS",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A14", "zigbee_mac_address": "ABCD012345670A14",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 16.5, "electricity_consumed": 16.5,
"electricity_consumed_interval": 0.5, "electricity_consumed_interval": 0.5,
@ -244,15 +220,13 @@ async def test_diagnostics(
"switches": {"relay": True, "lock": True}, "switches": {"relay": True, "lock": True},
}, },
"4a810418d5394b3f82727340b91ba740": { "4a810418d5394b3f82727340b91ba740": {
"class": "router", "dev_class": "router",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "USG Smart Plug", "name": "USG Smart Plug",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A16", "zigbee_mac_address": "ABCD012345670A16",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 8.5, "electricity_consumed": 8.5,
"electricity_consumed_interval": 0.0, "electricity_consumed_interval": 0.0,
@ -262,15 +236,13 @@ async def test_diagnostics(
"switches": {"relay": True, "lock": True}, "switches": {"relay": True, "lock": True},
}, },
"02cf28bfec924855854c544690a609ef": { "02cf28bfec924855854c544690a609ef": {
"class": "vcr", "dev_class": "vcr",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "NVR", "name": "NVR",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A15", "zigbee_mac_address": "ABCD012345670A15",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 34.0, "electricity_consumed": 34.0,
"electricity_consumed_interval": 9.15, "electricity_consumed_interval": 9.15,
@ -280,15 +252,13 @@ async def test_diagnostics(
"switches": {"relay": True, "lock": True}, "switches": {"relay": True, "lock": True},
}, },
"a28f588dc4a049a483fd03a30361ad3a": { "a28f588dc4a049a483fd03a30361ad3a": {
"class": "settop", "dev_class": "settop",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "Fibaro HC2", "name": "Fibaro HC2",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A13", "zigbee_mac_address": "ABCD012345670A13",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 12.5, "electricity_consumed": 12.5,
"electricity_consumed_interval": 3.8, "electricity_consumed_interval": 3.8,
@ -298,26 +268,19 @@ async def test_diagnostics(
"switches": {"relay": True, "lock": True}, "switches": {"relay": True, "lock": True},
}, },
"6a3bf693d05e48e0b460c815a4fdd09d": { "6a3bf693d05e48e0b460c815a4fdd09d": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-10-27T02:00:00+02:00", "firmware": "2016-10-27T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "82fa13f017d240daa0d0ea1775420f24", "location": "82fa13f017d240daa0d0ea1775420f24",
"mac_address": None,
"model": "Lisa", "model": "Lisa",
"name": "Zone Thermostat Jessie", "name": "Zone Thermostat Jessie",
"zigbee_mac_address": "ABCD012345670A03",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "asleep", "active_preset": "asleep",
"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],
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -332,13 +295,13 @@ async def test_diagnostics(
"sensors": {"temperature": 17.2, "setpoint": 15.0, "battery": 37}, "sensors": {"temperature": 17.2, "setpoint": 15.0, "battery": 37},
}, },
"680423ff840043738f42cc7f1ff97a36": { "680423ff840043738f42cc7f1ff97a36": {
"class": "thermo_sensor", "dev_class": "thermo_sensor",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "08963fec7c53423ca5680aa4cb502c63", "location": "08963fec7c53423ca5680aa4cb502c63",
"mac_address": None,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "Thermostatic Radiator Badkamer", "name": "Thermostatic Radiator Badkamer",
"zigbee_mac_address": "ABCD012345670A17",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
@ -352,26 +315,19 @@ async def test_diagnostics(
}, },
}, },
"f1fee6043d3642a9b0a65297455f008e": { "f1fee6043d3642a9b0a65297455f008e": {
"class": "zone_thermostat", "dev_class": "zone_thermostat",
"fw": "2016-10-27T02:00:00+02:00", "firmware": "2016-10-27T02:00:00+02:00",
"hw": "255", "hardware": "255",
"location": "08963fec7c53423ca5680aa4cb502c63", "location": "08963fec7c53423ca5680aa4cb502c63",
"mac_address": None,
"model": "Lisa", "model": "Lisa",
"name": "Zone Thermostat Badkamer", "name": "Zone Thermostat Badkamer",
"zigbee_mac_address": "ABCD012345670A08",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 99.9, "upper_bound": 99.9,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "away", "active_preset": "away",
"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],
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -386,15 +342,13 @@ async def test_diagnostics(
"sensors": {"temperature": 18.9, "setpoint": 14.0, "battery": 92}, "sensors": {"temperature": 18.9, "setpoint": 14.0, "battery": 92},
}, },
"675416a629f343c495449970e2ca37b5": { "675416a629f343c495449970e2ca37b5": {
"class": "router", "dev_class": "router",
"fw": "2019-06-21T02:00:00+02:00", "firmware": "2019-06-21T02:00:00+02:00",
"hw": None,
"location": "cd143c07248f491493cea0533bc3d669", "location": "cd143c07248f491493cea0533bc3d669",
"mac_address": None,
"model": "Plug", "model": "Plug",
"name": "Ziggo Modem", "name": "Ziggo Modem",
"vendor": "Plugwise",
"zigbee_mac_address": "ABCD012345670A01", "zigbee_mac_address": "ABCD012345670A01",
"vendor": "Plugwise",
"sensors": { "sensors": {
"electricity_consumed": 12.2, "electricity_consumed": 12.2,
"electricity_consumed_interval": 2.97, "electricity_consumed_interval": 2.97,
@ -404,26 +358,19 @@ async def test_diagnostics(
"switches": {"relay": True, "lock": True}, "switches": {"relay": True, "lock": True},
}, },
"e7693eb9582644e5b865dba8d4447cf1": { "e7693eb9582644e5b865dba8d4447cf1": {
"class": "thermostatic_radiator_valve", "dev_class": "thermostatic_radiator_valve",
"fw": "2019-03-27T01:00:00+01:00", "firmware": "2019-03-27T01:00:00+01:00",
"hw": "1", "hardware": "1",
"location": "446ac08dd04d4eff8ac57489757b7314", "location": "446ac08dd04d4eff8ac57489757b7314",
"mac_address": None,
"model": "Tom/Floor", "model": "Tom/Floor",
"name": "CV Kraan Garage", "name": "CV Kraan Garage",
"zigbee_mac_address": "ABCD012345670A11",
"vendor": "Plugwise", "vendor": "Plugwise",
"lower_bound": 0.0, "lower_bound": 0.0,
"upper_bound": 100.0, "upper_bound": 100.0,
"resolution": 0.01, "resolution": 0.01,
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"], "preset_modes": ["home", "asleep", "away", "no_frost"],
"active_preset": "no_frost", "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],
},
"available_schedules": [ "available_schedules": [
"CV Roan", "CV Roan",
"Bios Schema met Film Avond", "Bios Schema met Film Avond",
@ -433,7 +380,7 @@ async def test_diagnostics(
], ],
"selected_schedule": "None", "selected_schedule": "None",
"last_used": "Badkamer Schema", "last_used": "Badkamer Schema",
"schedule_temperature": 15.0, "schedule_temperature": 0.0,
"mode": "heat", "mode": "heat",
"sensors": { "sensors": {
"temperature": 15.6, "temperature": 15.6,