Move configuration details to docs
parent
6f3cebdacf
commit
bc106bcb10
|
@ -1,23 +1,11 @@
|
||||||
"""
|
"""
|
||||||
homeassistant.components.thermostat.homematic
|
homeassistant.components.thermostat.homematic
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Adds support for Homematic (HM-TC-IT-WM-W-EU, HM-CC-RT-DN)
|
Adds support for Homematic (HM-TC-IT-WM-W-EU, HM-CC-RT-DN) thermostats using
|
||||||
thermostats using Homegear or Homematic central (CCU1/CCU2).
|
Homegear or Homematic central (CCU1/CCU2).
|
||||||
|
|
||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/thermostat.homematic/
|
https://home-assistant.io/components/thermostat.homematic/
|
||||||
|
|
||||||
Configuration example:
|
|
||||||
|
|
||||||
thermostat:
|
|
||||||
platform: homematic
|
|
||||||
address: HOMEGEAR/CCU ADDRESS (e.g. http://localhost:2001)
|
|
||||||
devices:
|
|
||||||
Livingroom 1:
|
|
||||||
id: DEVICE_SERIAL_NO (e.g. MEQ0791521)
|
|
||||||
Livingroom 2:
|
|
||||||
id: DEVICE_SERIAL_NO
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
@ -111,18 +99,20 @@ class HomematicThermostat(ThermostatDevice):
|
||||||
return self._target_temperature
|
return self._target_temperature
|
||||||
|
|
||||||
def set_temperature(self, temperature):
|
def set_temperature(self, temperature):
|
||||||
""" Set new target temperature """
|
""" Set new target temperature. """
|
||||||
self.device.setValue(self._full_device_name,
|
self.device.setValue(self._full_device_name,
|
||||||
PROPERTY_SET_TEMPERATURE,
|
PROPERTY_SET_TEMPERATURE,
|
||||||
temperature)
|
temperature)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
|
""" Returns device specific state attributes. """
|
||||||
return {"valve": self._valve,
|
return {"valve": self._valve,
|
||||||
"battery": self._battery,
|
"battery": self._battery,
|
||||||
"mode": self._mode}
|
"mode": self._mode}
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
""" Update the data from the thermostat. """
|
||||||
try:
|
try:
|
||||||
self._current_temperature = self.device.getValue(
|
self._current_temperature = self.device.getValue(
|
||||||
self._full_device_name,
|
self._full_device_name,
|
||||||
|
|
Loading…
Reference in New Issue