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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Versions from 0.40 and up

## v0.54.2

- Link to plugwise [v1.5.1](https://github.com/plugwise/python-plugwise/releases/tag/v1.5.1) and adapt:
- Change thermostat device-key `mode` to `climate_mode`

## v0.54.1

- Fix typing error
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
ACTIVE_PRESET,
AVAILABLE_SCHEDULES,
BINARY_SENSORS,
CLIMATE_MODE,
CONF_HOMEKIT_EMULATION, # pw-beta homekit emulation
CONTROL_STATE,
COOLING_PRESENT,
Expand All @@ -43,7 +44,6 @@
LOGGER,
LOWER_BOUND,
MASTER_THERMOSTATS,
MODE,
REGULATION_MODES,
RESOLUTION,
SELECT_REGULATION_MODE,
Expand Down Expand Up @@ -195,7 +195,7 @@ def target_temperature_low(self) -> float:
def hvac_mode(self) -> HVACMode:
"""Return HVAC operation ie. auto, cool, heat, heat_cool, or off mode."""
if (
mode := self.device[MODE]
mode := self.device[CLIMATE_MODE]
) is None or mode not in self.hvac_modes: # pw-beta add to Core
return HVACMode.HEAT # pragma: no cover
# pw-beta homekit emulation
Expand Down
2 changes: 1 addition & 1 deletion custom_components/plugwise/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@

# Climate constants
ACTIVE_PRESET: Final = "active_preset"
CLIMATE_MODE: Final = "climate_mode"
CONTROL_STATE: Final = "control_state"
COOLING_PRESENT: Final ="cooling_present"
DEV_CLASS: Final = "dev_class"
NONE : Final = "None"
MODE: Final = "mode"
TARGET_TEMP: Final = "setpoint"
TARGET_TEMP_HIGH: Final = "setpoint_high"
TARGET_TEMP_LOW: Final = "setpoint_low"
Expand Down
4 changes: 2 additions & 2 deletions custom_components/plugwise/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"integration_type": "hub",
"iot_class": "local_polling",
"loggers": ["plugwise"],
"requirements": ["plugwise==1.5.0"],
"version": "0.54.1",
"requirements": ["plugwise==1.5.1"],
"version": "0.54.2",
"zeroconf": ["_plugwise._tcp.local."]
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"standaard",
"off"
],
"climate_mode": "auto",
"dev_class": "thermostat",
"firmware": "2018-02-08T11:15:53+01:00",
"hardware": "6539-1301-5002",
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mode": "auto",
"model": "ThermoTouch",
"name": "Anna",
"preset_modes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
},
"0d266432d64443e283b5d708ae98b455": {
"active_preset": "home",
"climate_mode": "heat",
"dev_class": "thermostat",
"firmware": "2017-03-13T11:54:58+01:00",
"hardware": "6539-1301-500",
"location": "0000aaaa0000aaaa0000aaaa0000aa00",
"mode": "heat",
"model": "ThermoTouch",
"name": "Anna",
"preset_modes": [
Expand All @@ -51,7 +51,7 @@
"no_frost"
],
"sensors": {
"illuminance": 151,
"illuminance": 150.8,
"setpoint": 20.5,
"temperature": 20.4
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
"Weekschema",
"off"
],
"climate_mode": "cool",
"control_state": "cooling",
"dev_class": "thermostat",
"location": "f2bf9048bef64cc5b6d5110154e33c81",
"mode": "cool",
"model": "ThermoTouch",
"model_id": "143.1",
"name": "Anna",
Expand Down Expand Up @@ -135,12 +135,12 @@
"binary_sensors": {
"low_battery": true
},
"climate_mode": "auto",
"control_state": "preheating",
"dev_class": "zone_thermostat",
"firmware": "2016-10-10T02:00:00+02:00",
"hardware": "255",
"location": "f871b8c4d63549319221e294e4f88074",
"mode": "auto",
"model": "Lisa",
"model_id": "158-01",
"name": "Lisa Badkamer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
"Weekschema",
"off"
],
"climate_mode": "heat",
"control_state": "preheating",
"dev_class": "thermostat",
"location": "f2bf9048bef64cc5b6d5110154e33c81",
"mode": "heat",
"model": "ThermoTouch",
"model_id": "143.1",
"name": "Anna",
Expand Down Expand Up @@ -139,12 +139,12 @@
"binary_sensors": {
"low_battery": true
},
"climate_mode": "auto",
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-10T02:00:00+02:00",
"hardware": "255",
"location": "f871b8c4d63549319221e294e4f88074",
"mode": "auto",
"model": "Lisa",
"model_id": "158-01",
"name": "Lisa Badkamer",
Expand Down
8 changes: 4 additions & 4 deletions tests/components/plugwise/fixtures/m_adam_jip/all_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "off",
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
"location": "06aecb3d00354375924f50c47af36bd2",
"mode": "off",
"model": "Lisa",
"model_id": "158-01",
"name": "Slaapkamer",
Expand Down Expand Up @@ -113,12 +113,12 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "heat",
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
"location": "d27aede973b54be484f6842d1b2802ad",
"mode": "heat",
"model": "Lisa",
"model_id": "158-01",
"name": "Kinderkamer",
Expand Down Expand Up @@ -179,12 +179,12 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "heat",
"control_state": "off",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
"location": "d58fec52899f4f1c92e4f8fad6d8c48c",
"mode": "heat",
"model": "Lisa",
"model_id": "158-01",
"name": "Logeerkamer",
Expand Down Expand Up @@ -312,12 +312,12 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "heat",
"control_state": "off",
"dev_class": "zone_thermometer",
"firmware": "2020-09-01T02:00:00+02:00",
"hardware": "1",
"location": "13228dab8ce04617af318a2888b3c548",
"mode": "heat",
"model": "Jip",
"model_id": "168-01",
"name": "Woonkamer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "auto",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
"location": "82fa13f017d240daa0d0ea1775420f24",
"mode": "auto",
"model": "Lisa",
"model_id": "158-01",
"name": "Zone Thermostat Jessie",
Expand Down Expand Up @@ -283,11 +283,11 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "auto",
"dev_class": "zone_thermostat",
"firmware": "2016-08-02T02:00:00+02:00",
"hardware": "255",
"location": "c50f167537524366a5af7aa3942feb1e",
"mode": "auto",
"model": "Lisa",
"model_id": "158-01",
"name": "Zone Lisa WK",
Expand Down Expand Up @@ -382,11 +382,11 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "heat",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
"location": "12493538af164a409c6a1c79e38afe1c",
"mode": "heat",
"model": "Lisa",
"model_id": "158-01",
"name": "Zone Lisa Bios",
Expand Down Expand Up @@ -424,11 +424,11 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "heat",
"dev_class": "thermostatic_radiator_valve",
"firmware": "2019-03-27T01:00:00+01:00",
"hardware": "1",
"location": "446ac08dd04d4eff8ac57489757b7314",
"mode": "heat",
"model": "Tom/Floor",
"model_id": "106-03",
"name": "CV Kraan Garage",
Expand Down Expand Up @@ -475,11 +475,11 @@
"binary_sensors": {
"low_battery": false
},
"climate_mode": "auto",
"dev_class": "zone_thermostat",
"firmware": "2016-10-27T02:00:00+02:00",
"hardware": "255",
"location": "08963fec7c53423ca5680aa4cb502c63",
"mode": "auto",
"model": "Lisa",
"model_id": "158-01",
"name": "Zone Thermostat Badkamer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"standaard",
"off"
],
"climate_mode": "auto",
"dev_class": "thermostat",
"firmware": "2018-02-08T11:15:53+01:00",
"hardware": "6539-1301-5002",
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mode": "auto",
"model": "ThermoTouch",
"name": "Anna",
"preset_modes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"standaard",
"off"
],
"climate_mode": "auto",
"dev_class": "thermostat",
"firmware": "2018-02-08T11:15:53+01:00",
"hardware": "6539-1301-5002",
"location": "c784ee9fdab44e1395b8dee7d7a497d5",
"mode": "auto",
"model": "ThermoTouch",
"name": "Anna",
"preset_modes": [
Expand Down
10 changes: 5 additions & 5 deletions tests/components/plugwise/snapshots/test_diagnostics.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@
'binary_sensors': dict({
'low_battery': False,
}),
'climate_mode': 'auto',
'dev_class': 'zone_thermostat',
'firmware': '2016-10-27T02:00:00+02:00',
'hardware': '255',
'location': '82fa13f017d240daa0d0ea1775420f24',
'mode': 'auto',
'model': 'Lisa',
'model_id': '158-01',
'name': 'Zone Thermostat Jessie',
Expand Down Expand Up @@ -285,11 +285,11 @@
'binary_sensors': dict({
'low_battery': False,
}),
'climate_mode': 'auto',
'dev_class': 'zone_thermostat',
'firmware': '2016-08-02T02:00:00+02:00',
'hardware': '255',
'location': 'c50f167537524366a5af7aa3942feb1e',
'mode': 'auto',
'model': 'Lisa',
'model_id': '158-01',
'name': 'Zone Lisa WK',
Expand Down Expand Up @@ -384,11 +384,11 @@
'binary_sensors': dict({
'low_battery': False,
}),
'climate_mode': 'heat',
'dev_class': 'zone_thermostat',
'firmware': '2016-10-27T02:00:00+02:00',
'hardware': '255',
'location': '12493538af164a409c6a1c79e38afe1c',
'mode': 'heat',
'model': 'Lisa',
'model_id': '158-01',
'name': 'Zone Lisa Bios',
Expand Down Expand Up @@ -426,11 +426,11 @@
'binary_sensors': dict({
'low_battery': False,
}),
'climate_mode': 'heat',
'dev_class': 'thermostatic_radiator_valve',
'firmware': '2019-03-27T01:00:00+01:00',
'hardware': '1',
'location': '446ac08dd04d4eff8ac57489757b7314',
'mode': 'heat',
'model': 'Tom/Floor',
'model_id': '106-03',
'name': 'CV Kraan Garage',
Expand Down Expand Up @@ -477,11 +477,11 @@
'binary_sensors': dict({
'low_battery': False,
}),
'climate_mode': 'auto',
'dev_class': 'zone_thermostat',
'firmware': '2016-10-27T02:00:00+02:00',
'hardware': '255',
'location': '08963fec7c53423ca5680aa4cb502c63',
'mode': 'auto',
'model': 'Lisa',
'model_id': '158-01',
'name': 'Zone Thermostat Badkamer',
Expand Down
Loading