Skip to content

Commit 2564283

Browse files
committed
Revert some ATTR_NAME removals
1 parent 84855c1 commit 2564283

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

plugwise/constants.py

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,22 +314,33 @@
314314
# Excluded:
315315
# zone_thermosstat 'temperature_offset'
316316
# radiator_valve 'uncorrected_temperature', 'temperature_offset'
317+
318+
319+
320+
317321
DEVICE_MEASUREMENTS = {
318322
# HA Core current_temperature
319323
"temperature": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
320324
# HA Core setpoint
321-
"thermostat": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
325+
"thermostat": {ATTR_NAME: "setpoint", ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
322326
# Anna/Adam
323-
"boiler_temperature": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
324-
"domestic_hot_water_state": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
327+
"boiler_temperature": {ATTR_NAME: "water_temperature", ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
328+
"domestic_hot_water_state": {
329+
ATTR_NAME: "dhw_state",
330+
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
331+
},
325332
"intended_boiler_temperature": {
326333
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS
327334
}, # non-zero when heating, zero when dhw-heating
328335
"intended_central_heating_state": {
329-
ATTR_UNIT_OF_MEASUREMENT: None
336+
ATTR_NAME: "heating_state",
337+
ATTR_UNIT_OF_MEASUREMENT: None,
330338
}, # use intended_c_h_state, this key shows the heating-behavior better than c-h_state
331339
"modulation_level": {ATTR_UNIT_OF_MEASUREMENT: PERCENTAGE},
332-
"return_water_temperature": {ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS},
340+
"return_water_temperature": {
341+
ATTR_NAME: "return_temperature",
342+
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
343+
},
333344
# Used with the Elga heatpump - marcelveldt
334345
"compressor_state": {ATTR_UNIT_OF_MEASUREMENT: None},
335346
"cooling_state": {ATTR_UNIT_OF_MEASUREMENT: None},
@@ -339,7 +350,10 @@
339350
ATTR_UNIT_OF_MEASUREMENT: None
340351
}, # also present when there is a single gas-heater
341352
# Anna only
342-
"central_heater_water_pressure": {ATTR_UNIT_OF_MEASUREMENT: PRESSURE_BAR},
353+
"central_heater_water_pressure": {
354+
ATTR_NAME: "water_pressure",
355+
ATTR_UNIT_OF_MEASUREMENT: PRESSURE_BAR,
356+
},
343357
"outdoor_temperature": {
344358
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS
345359
}, # Outdoor temp as reported on the Anna, in the App

0 commit comments

Comments
 (0)