Skip to content

Commit

Permalink
#3 empty preset used instead of comfort
Browse files Browse the repository at this point in the history
  • Loading branch information
asev committed Feb 3, 2021
1 parent e45a180 commit a6b9e73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ Thermostat names can be changed in Uponor Smatrix app or via configuration.
`switch.uponor_cooling_mode` activates cooling mode when switched on and heating mode when it's switched off.
This switch will be added only if cooling is available in your system.

### Climate entity

Climate entity has read-only preset. Two presets are available:
* ECO - activated when scheduled ECO profile is on OR if Temporary ECO mode activated on the mobile app.
* Away - activated when `switch.uponor_away` is on.

If none of those are true, then preset is empty.

## Configuration

- `names` : map (optional) - custom name for every thermostat. `C1_T1` is the thermostat id. Check state attributes of
Expand Down
4 changes: 2 additions & 2 deletions custom_components/uponor/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ def preset_mode(self):
return PRESET_ECO
if self._state_proxy.is_away():
return PRESET_AWAY
return PRESET_COMFORT
return None

@property
def preset_modes(self):
return [self.preset_mode]
return [self.preset_mode] if self.preset_mode is not None else []

@property
def temperature_unit(self):
Expand Down

0 comments on commit a6b9e73

Please sign in to comment.