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

Commit

Permalink
🙏 Some personal preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Mar 21, 2019
1 parent 99a76c0 commit 38b40e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
30 changes: 3 additions & 27 deletions InComfort/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,34 +65,10 @@ def __init__(self, name, host):
def state(self):
"""Return the current state."""
if self.data is not None:
if self.data['displ_code'] == 0:
self._state = 'Opentherm'
elif self.data['displ_code'] == 15:
self._state = 'Boiler External'
elif self.data['displ_code'] == 24:
self._state = 'Frost'
elif self.data['displ_code'] == 37:
self._state = 'Central Heating RF'
elif self.data['displ_code'] == 51:
self._state = 'Tapwater Internal'
elif self.data['displ_code'] == 85:
self._state = 'Sensortest'
elif self.data['displ_code'] == 102:
self._state = 'Zone-heating'
elif self.data['displ_code'] == 126:
if bool(self.data['IO'] & 8):
self._state = 'Verwarmen'
else:
self._state = 'Standby'
elif self.data['displ_code'] == 153:
self._state = 'Postrun Boiler'
elif self.data['displ_code'] == 170:
self._state = 'Service'
elif self.data['displ_code'] == 204:
self._state = 'Tapwater'
elif self.data['displ_code'] == 231:
self._state = 'Postrun Central Heating'
elif self.data['displ_code'] == 240:
self._state = 'Boiler Internal'
elif self.data['displ_code'] == 255:
self._state = 'Buffer'
else:
self._state = None
return self._state
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ Intergas InComfort integration with Home Assistant.
<img src="https://raw.githubusercontent.com/royduin/home-assistant-incomfort/master/card.png" width="250px" alt="Card">
<img src="https://raw.githubusercontent.com/royduin/home-assistant-incomfort/master/popup.png" width="250px" alt="Popup">

## Update
Add pressure, ch_temp, tap_temp and rf_message_rssi as device_state_attributes. And update to new custom_components structure of HA.

## Installation
Put the `climate.py` file in `custom_components/InComfort` within your configuration directory. On Ubuntu for example: `~/.homeassistant/custom_components/InComfort`. After that configure it in the `configuration.yaml` file:
```
Expand Down

0 comments on commit 38b40e7

Please sign in to comment.