Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
1.5.0b2
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgermain committed Dec 28, 2020
1 parent ea4d5a7 commit 431bba4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,21 @@ You can use something like this as automation:
- Add a scan interval option
- Fix error when a live report is not in the API anymore.
- Adding fan support
- You may sometimes see (around 3:30 am) an error like the following. It seems the API server is restarted every night, so the integration can't fetch data
```
Unable to fetch data from multimatic, API says:`xxx Service Unavailable, status: xxx
```

### [1.5.0b2](https://github.com/thomasgermain/vaillant-component/releases/tag/1.5.0b2)
- Add `multimatic` in unique_id in order to avoid collision
- Add `multimatic` for entity `quick_mode`, `holiday`, `system_online` and `system_update`
- Add fan entity

## Provided entities
- 1 water_heater entity, if any water heater: `water_heater.<water heater id>`, basically `water_heater.control_dhw`
- 1 climate entity per zone (expect if the zone is controlled by room) `climate.<zone id>`
- 1 climate entity per room `climate.<room name>`
- 1 fan entity `fan.<ventilation_id>`
- 1 binary_sensor entity `binary_sensor.control_dhw` reflecting if the circulation is on or off
- 1 binary_sensor entity `climate.<room name>_window` per room reflecting the state of the "open window" in a room (this is a feature of the multimatic API, if the temperature is going down pretty fast, the API assumes there is an open window and heating stops)
- 1 binary_sensor entity `climate.<sgtin>_lock`per device reflecting if valves are "child locked" or not
Expand Down
2 changes: 1 addition & 1 deletion multimatic/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ENTITIES = "entities"

# list of platforms into entity are created
PLATFORMS = ["binary_sensor", "sensor", "water_heater", "climate"]
PLATFORMS = ["binary_sensor", "sensor", "water_heater", "climate", "fan"]

# climate custom presets
PRESET_DAY = "day"
Expand Down
6 changes: 4 additions & 2 deletions multimatic/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from homeassistant.util import slugify

from . import ApiHub
from .const import REFRESH_ENTITIES_EVENT
from .const import DOMAIN as MULTIMATIC, REFRESH_ENTITIES_EVENT

_LOGGER = logging.getLogger(__name__)

Expand All @@ -23,12 +23,14 @@ def __init__(
self._device_class = dev_class
if dev_class and class_id:
id_format = domain + "._{}_" + dev_class
unique_id_format = domain + "._" + MULTIMATIC + "_{}_" + dev_class
else:
id_format = domain + "._{}"
unique_id_format = domain + "._" + MULTIMATIC + "_{}"

self.entity_id = id_format.format(slugify(device_id)).lower()
self._unique_id = unique_id_format.format(slugify(device_id)).lower()
self._entity_name = name
self._unique_id = self.entity_id
self._remove_listener = None

@property
Expand Down
1 change: 1 addition & 0 deletions multimatic/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(self, hub: ApiHub):
False,
)
self._speed_list = [
OperatingModes.AUTO.name,
OperatingModes.OFF.name,
OperatingModes.DAY.name,
OperatingModes.NIGHT.name,
Expand Down

0 comments on commit 431bba4

Please sign in to comment.