Bump plugwise to v0.35.3 (#105442)
This commit is contained in:
parent
fbfe434e8b
commit
3e3f9cf092
14 changed files with 53 additions and 25 deletions
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
from typing import Final
|
from typing import Final, Literal
|
||||||
|
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
|
|
||||||
|
@ -36,6 +36,23 @@ ZEROCONF_MAP: Final[dict[str, str]] = {
|
||||||
"stretch": "Stretch",
|
"stretch": "Stretch",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NumberType = Literal[
|
||||||
|
"maximum_boiler_temperature",
|
||||||
|
"max_dhw_temperature",
|
||||||
|
"temperature_offset",
|
||||||
|
]
|
||||||
|
|
||||||
|
SelectType = Literal[
|
||||||
|
"select_dhw_mode",
|
||||||
|
"select_regulation_mode",
|
||||||
|
"select_schedule",
|
||||||
|
]
|
||||||
|
SelectOptionsType = Literal[
|
||||||
|
"dhw_modes",
|
||||||
|
"regulation_modes",
|
||||||
|
"available_schedules",
|
||||||
|
]
|
||||||
|
|
||||||
# Default directives
|
# Default directives
|
||||||
DEFAULT_MAX_TEMP: Final = 30
|
DEFAULT_MAX_TEMP: Final = 30
|
||||||
DEFAULT_MIN_TEMP: Final = 4
|
DEFAULT_MIN_TEMP: Final = 4
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["crcmod", "plugwise"],
|
"loggers": ["crcmod", "plugwise"],
|
||||||
"requirements": ["plugwise==0.34.5"],
|
"requirements": ["plugwise==0.35.3"],
|
||||||
"zeroconf": ["_plugwise._tcp.local."]
|
"zeroconf": ["_plugwise._tcp.local."]
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ from collections.abc import Awaitable, Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from plugwise import Smile
|
from plugwise import Smile
|
||||||
from plugwise.constants import NumberType
|
|
||||||
|
|
||||||
from homeassistant.components.number import (
|
from homeassistant.components.number import (
|
||||||
NumberDeviceClass,
|
NumberDeviceClass,
|
||||||
|
@ -18,7 +17,7 @@ from homeassistant.const import EntityCategory, UnitOfTemperature
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN, NumberType
|
||||||
from .coordinator import PlugwiseDataUpdateCoordinator
|
from .coordinator import PlugwiseDataUpdateCoordinator
|
||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ from collections.abc import Awaitable, Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from plugwise import Smile
|
from plugwise import Smile
|
||||||
from plugwise.constants import SelectOptionsType, SelectType
|
|
||||||
|
|
||||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -13,7 +12,7 @@ from homeassistant.const import STATE_ON, EntityCategory
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN, SelectOptionsType, SelectType
|
||||||
from .coordinator import PlugwiseDataUpdateCoordinator
|
from .coordinator import PlugwiseDataUpdateCoordinator
|
||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"select_schedule": {
|
"select_schedule": {
|
||||||
"name": "Thermostat schedule"
|
"name": "Thermostat schedule",
|
||||||
|
"state": {
|
||||||
|
"off": "Off"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
|
|
|
@ -1486,7 +1486,7 @@ plexauth==0.0.6
|
||||||
plexwebsocket==0.0.14
|
plexwebsocket==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.plugwise
|
# homeassistant.components.plugwise
|
||||||
plugwise==0.34.5
|
plugwise==0.35.3
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
|
|
@ -1144,7 +1144,7 @@ plexauth==0.0.6
|
||||||
plexwebsocket==0.0.14
|
plexwebsocket==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.plugwise
|
# homeassistant.components.plugwise
|
||||||
plugwise==0.34.5
|
plugwise==0.35.3
|
||||||
|
|
||||||
# homeassistant.components.plum_lightpad
|
# homeassistant.components.plum_lightpad
|
||||||
plumlightpad==0.0.11
|
plumlightpad==0.0.11
|
||||||
|
|
|
@ -112,7 +112,8 @@
|
||||||
"Bios Schema met Film Avond",
|
"Bios Schema met Film Avond",
|
||||||
"GF7 Woonkamer",
|
"GF7 Woonkamer",
|
||||||
"Badkamer Schema",
|
"Badkamer Schema",
|
||||||
"CV Jessie"
|
"CV Jessie",
|
||||||
|
"off"
|
||||||
],
|
],
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-27T02:00:00+02:00",
|
"firmware": "2016-10-27T02:00:00+02:00",
|
||||||
|
@ -251,7 +252,8 @@
|
||||||
"Bios Schema met Film Avond",
|
"Bios Schema met Film Avond",
|
||||||
"GF7 Woonkamer",
|
"GF7 Woonkamer",
|
||||||
"Badkamer Schema",
|
"Badkamer Schema",
|
||||||
"CV Jessie"
|
"CV Jessie",
|
||||||
|
"off"
|
||||||
],
|
],
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-08-02T02:00:00+02:00",
|
"firmware": "2016-08-02T02:00:00+02:00",
|
||||||
|
@ -334,7 +336,8 @@
|
||||||
"Bios Schema met Film Avond",
|
"Bios Schema met Film Avond",
|
||||||
"GF7 Woonkamer",
|
"GF7 Woonkamer",
|
||||||
"Badkamer Schema",
|
"Badkamer Schema",
|
||||||
"CV Jessie"
|
"CV Jessie",
|
||||||
|
"off"
|
||||||
],
|
],
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-27T02:00:00+02:00",
|
"firmware": "2016-10-27T02:00:00+02:00",
|
||||||
|
@ -344,7 +347,7 @@
|
||||||
"model": "Lisa",
|
"model": "Lisa",
|
||||||
"name": "Zone Lisa Bios",
|
"name": "Zone Lisa Bios",
|
||||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||||
"select_schedule": "None",
|
"select_schedule": "off",
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"battery": 67,
|
"battery": 67,
|
||||||
"setpoint": 13.0,
|
"setpoint": 13.0,
|
||||||
|
@ -373,7 +376,8 @@
|
||||||
"Bios Schema met Film Avond",
|
"Bios Schema met Film Avond",
|
||||||
"GF7 Woonkamer",
|
"GF7 Woonkamer",
|
||||||
"Badkamer Schema",
|
"Badkamer Schema",
|
||||||
"CV Jessie"
|
"CV Jessie",
|
||||||
|
"off"
|
||||||
],
|
],
|
||||||
"dev_class": "thermostatic_radiator_valve",
|
"dev_class": "thermostatic_radiator_valve",
|
||||||
"firmware": "2019-03-27T01:00:00+01:00",
|
"firmware": "2019-03-27T01:00:00+01:00",
|
||||||
|
@ -383,7 +387,7 @@
|
||||||
"model": "Tom/Floor",
|
"model": "Tom/Floor",
|
||||||
"name": "CV Kraan Garage",
|
"name": "CV Kraan Garage",
|
||||||
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
"preset_modes": ["home", "asleep", "away", "vacation", "no_frost"],
|
||||||
"select_schedule": "None",
|
"select_schedule": "off",
|
||||||
"sensors": {
|
"sensors": {
|
||||||
"battery": 68,
|
"battery": 68,
|
||||||
"setpoint": 5.5,
|
"setpoint": 5.5,
|
||||||
|
@ -414,7 +418,8 @@
|
||||||
"Bios Schema met Film Avond",
|
"Bios Schema met Film Avond",
|
||||||
"GF7 Woonkamer",
|
"GF7 Woonkamer",
|
||||||
"Badkamer Schema",
|
"Badkamer Schema",
|
||||||
"CV Jessie"
|
"CV Jessie",
|
||||||
|
"off"
|
||||||
],
|
],
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-27T02:00:00+02:00",
|
"firmware": "2016-10-27T02:00:00+02:00",
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
},
|
},
|
||||||
"3cb70739631c4d17a86b8b12e8a5161b": {
|
"3cb70739631c4d17a86b8b12e8a5161b": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available_schedules": ["standaard"],
|
"available_schedules": ["standaard", "off"],
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"firmware": "2018-02-08T11:15:53+01:00",
|
"firmware": "2018-02-08T11:15:53+01:00",
|
||||||
"hardware": "6539-1301-5002",
|
"hardware": "6539-1301-5002",
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
"ad4838d7d35c4d6ea796ee12ae5aedf8": {
|
"ad4838d7d35c4d6ea796ee12ae5aedf8": {
|
||||||
"active_preset": "asleep",
|
"active_preset": "asleep",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test", "off"],
|
||||||
"control_state": "cooling",
|
"control_state": "cooling",
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
"e2f4322d57924fa090fbbc48b3a140dc": {
|
"e2f4322d57924fa090fbbc48b3a140dc": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test", "off"],
|
||||||
"control_state": "off",
|
"control_state": "off",
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-10T02:00:00+02:00",
|
"firmware": "2016-10-10T02:00:00+02:00",
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
"ad4838d7d35c4d6ea796ee12ae5aedf8": {
|
"ad4838d7d35c4d6ea796ee12ae5aedf8": {
|
||||||
"active_preset": "asleep",
|
"active_preset": "asleep",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test", "off"],
|
||||||
"control_state": "preheating",
|
"control_state": "preheating",
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
"location": "f2bf9048bef64cc5b6d5110154e33c81",
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
"e2f4322d57924fa090fbbc48b3a140dc": {
|
"e2f4322d57924fa090fbbc48b3a140dc": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available": true,
|
"available": true,
|
||||||
"available_schedules": ["Weekschema", "Badkamer", "Test"],
|
"available_schedules": ["Weekschema", "Badkamer", "Test", "off"],
|
||||||
"control_state": "off",
|
"control_state": "off",
|
||||||
"dev_class": "zone_thermostat",
|
"dev_class": "zone_thermostat",
|
||||||
"firmware": "2016-10-10T02:00:00+02:00",
|
"firmware": "2016-10-10T02:00:00+02:00",
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
},
|
},
|
||||||
"3cb70739631c4d17a86b8b12e8a5161b": {
|
"3cb70739631c4d17a86b8b12e8a5161b": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available_schedules": ["standaard"],
|
"available_schedules": ["standaard", "off"],
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"firmware": "2018-02-08T11:15:53+01:00",
|
"firmware": "2018-02-08T11:15:53+01:00",
|
||||||
"hardware": "6539-1301-5002",
|
"hardware": "6539-1301-5002",
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
},
|
},
|
||||||
"3cb70739631c4d17a86b8b12e8a5161b": {
|
"3cb70739631c4d17a86b8b12e8a5161b": {
|
||||||
"active_preset": "home",
|
"active_preset": "home",
|
||||||
"available_schedules": ["standaard"],
|
"available_schedules": ["standaard", "off"],
|
||||||
"dev_class": "thermostat",
|
"dev_class": "thermostat",
|
||||||
"firmware": "2018-02-08T11:15:53+01:00",
|
"firmware": "2018-02-08T11:15:53+01:00",
|
||||||
"hardware": "6539-1301-5002",
|
"hardware": "6539-1301-5002",
|
||||||
|
|
|
@ -115,6 +115,7 @@
|
||||||
'GF7 Woonkamer',
|
'GF7 Woonkamer',
|
||||||
'Badkamer Schema',
|
'Badkamer Schema',
|
||||||
'CV Jessie',
|
'CV Jessie',
|
||||||
|
'off',
|
||||||
]),
|
]),
|
||||||
'dev_class': 'zone_thermostat',
|
'dev_class': 'zone_thermostat',
|
||||||
'firmware': '2016-10-27T02:00:00+02:00',
|
'firmware': '2016-10-27T02:00:00+02:00',
|
||||||
|
@ -260,6 +261,7 @@
|
||||||
'GF7 Woonkamer',
|
'GF7 Woonkamer',
|
||||||
'Badkamer Schema',
|
'Badkamer Schema',
|
||||||
'CV Jessie',
|
'CV Jessie',
|
||||||
|
'off',
|
||||||
]),
|
]),
|
||||||
'dev_class': 'zone_thermostat',
|
'dev_class': 'zone_thermostat',
|
||||||
'firmware': '2016-08-02T02:00:00+02:00',
|
'firmware': '2016-08-02T02:00:00+02:00',
|
||||||
|
@ -349,6 +351,7 @@
|
||||||
'GF7 Woonkamer',
|
'GF7 Woonkamer',
|
||||||
'Badkamer Schema',
|
'Badkamer Schema',
|
||||||
'CV Jessie',
|
'CV Jessie',
|
||||||
|
'off',
|
||||||
]),
|
]),
|
||||||
'dev_class': 'zone_thermostat',
|
'dev_class': 'zone_thermostat',
|
||||||
'firmware': '2016-10-27T02:00:00+02:00',
|
'firmware': '2016-10-27T02:00:00+02:00',
|
||||||
|
@ -364,7 +367,7 @@
|
||||||
'vacation',
|
'vacation',
|
||||||
'no_frost',
|
'no_frost',
|
||||||
]),
|
]),
|
||||||
'select_schedule': 'None',
|
'select_schedule': 'off',
|
||||||
'sensors': dict({
|
'sensors': dict({
|
||||||
'battery': 67,
|
'battery': 67,
|
||||||
'setpoint': 13.0,
|
'setpoint': 13.0,
|
||||||
|
@ -394,6 +397,7 @@
|
||||||
'GF7 Woonkamer',
|
'GF7 Woonkamer',
|
||||||
'Badkamer Schema',
|
'Badkamer Schema',
|
||||||
'CV Jessie',
|
'CV Jessie',
|
||||||
|
'off',
|
||||||
]),
|
]),
|
||||||
'dev_class': 'thermostatic_radiator_valve',
|
'dev_class': 'thermostatic_radiator_valve',
|
||||||
'firmware': '2019-03-27T01:00:00+01:00',
|
'firmware': '2019-03-27T01:00:00+01:00',
|
||||||
|
@ -409,7 +413,7 @@
|
||||||
'vacation',
|
'vacation',
|
||||||
'no_frost',
|
'no_frost',
|
||||||
]),
|
]),
|
||||||
'select_schedule': 'None',
|
'select_schedule': 'off',
|
||||||
'sensors': dict({
|
'sensors': dict({
|
||||||
'battery': 68,
|
'battery': 68,
|
||||||
'setpoint': 5.5,
|
'setpoint': 5.5,
|
||||||
|
@ -441,6 +445,7 @@
|
||||||
'GF7 Woonkamer',
|
'GF7 Woonkamer',
|
||||||
'Badkamer Schema',
|
'Badkamer Schema',
|
||||||
'CV Jessie',
|
'CV Jessie',
|
||||||
|
'off',
|
||||||
]),
|
]),
|
||||||
'dev_class': 'zone_thermostat',
|
'dev_class': 'zone_thermostat',
|
||||||
'firmware': '2016-10-27T02:00:00+02:00',
|
'firmware': '2016-10-27T02:00:00+02:00',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue