Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [4]})
self.WRITENODE.update({"SET_TEMPERATURE": [4]})
self.ACTIONNODE.update({"AUTO_MODE": [4],
"MANU_MODE": [4],
"BOOST_MODE": [4],
"COMFORT_MODE": [4],
"LOWERING_MODE": [4]})
self.ATTRIBUTENODE.update({"VALVE_STATE": [4],
"BATTERY_STATE": [4],
"CONTROL_MODE": [4]})
class ThermostatWall(HMThermostat, AreaThermostat, HelperBatteryState, HelperRssiPeer, HelperLowBat):
"""
HM-TC-IT-WM-W-EU
ClimateControl-Wall Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [2],
"ACTUAL_HUMIDITY": [2]})
self.WRITENODE.update({"SET_TEMPERATURE": [2]})
self.ACTIONNODE.update({"AUTO_MODE": [2],
"MANU_MODE": [2],
"BOOST_MODE": [2],
"COMFORT_MODE": [2],
"LOWERING_MODE": [2]})
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [1]})
self.WRITENODE.update({"SET_TEMPERATURE": [1]})
self.ACTIONNODE.update({"AUTO_MODE": [1],
"MANU_MODE": [1],
"BOOST_MODE": [1],
"COMFORT_MODE": [1],
"LOWERING_MODE": [1]})
self.ATTRIBUTENODE.update({"VALVE_STATE": [1],
"CONTROL_MODE": [1]})
class Thermostat(HMThermostat, HelperBatteryState, HelperValveState, HelperRssiPeer, HelperLowBat):
"""
HM-CC-RT-DN, HM-CC-RT-DN-BoM
ClimateControl-Radiator Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [4]})
self.WRITENODE.update({"SET_TEMPERATURE": [4]})
self.ACTIONNODE.update({"AUTO_MODE": [4],
"MANU_MODE": [4],
"BOOST_MODE": [4],
"COMFORT_MODE": [4],
"LOWERING_MODE": [4]})
self.ATTRIBUTENODE.update({"VALVE_STATE": [4],
class IPBrightnessSensor(SensorHmIP):
"""IP Sensor for outdoor brightness measure"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"CURRENT_ILLUMINATION": [1],
"AVERAGE_ILLUMINATION": [1],
"LOWEST_ILLUMINATION": [1],
"HIGHEST_ILLUMINATION": [1]})
class UniversalSensor(HMSensor, HelperLowBat, HelperRssiPeer, HelperValveState):
"""Universal sensor. (https://wiki.fhem.de/wiki/Universalsensor)"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"TEMPERATURE": self.ELEMENT,
"HUMIDITY": self.ELEMENT,
"AIR_PRESSURE": self.ELEMENT})
if "HB-UNI-Sensor1" in self._TYPE:
self.SENSORNODE.update({"OPERATING_VOLTAGE": self.ELEMENT,
"LUX": self.ELEMENT,
"VALVE_STATE": self.ELEMENT})
else:
self.SENSORNODE.update({"BatteryVoltage": [1],
class SensorHmW(HMSensor):
"""Homematic Wired sensors"""
class SensorHmNLB(HMSensor, HelperRssiDevice, HelperRssiPeer):
"""Homematic sensors always have
- strength of the signal received by the device (HelperRssiDevice).
Be aware that standard HM devices have a reversed understanding of PEER
and DEVICE compared to HMIP devices.
- strength of the signal received by the CCU (HelperRssiPeer).
Be aware that standard HM devices have a reversed understanding of PEER
and DEVICE compared to HMIP devices."""
class SensorHm(HMSensor, HelperRssiDevice, HelperRssiPeer, HelperLowBat):
"""Homematic sensors always have
- strength of the signal received by the device (HelperRssiDevice).
Be aware that standard HM devices have a reversed understanding of PEER
and DEVICE compared to HMIP devices.
- strength of the signal received by the CCU (HelperRssiPeer).
Be aware that standard HM devices have a reversed understanding of PEER
and DEVICE compared to HMIP devices.
- low battery status (HelperLowBat)"""
class SensorHmIP(HMSensor, HelperRssiDevice, HelperLowBatIP, HelperOperatingVoltageIP):
"""Homematic IP sensors always have
- strength of the signal received by the CCU (HelperRssiDevice).
Be aware that HMIP devices have a reversed understanding of PEER
and DEVICE compared to standard HM devices.
- strength of the signal received by the device (HelperRssiPeer).
class ThermostatWall2(HMThermostat, AreaThermostat):
"""
HM-CC-TC
ClimateControl-Wall Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"TEMPERATURE": [1],
"HUMIDITY": [1]})
self.WRITENODE.update({"SETPOINT": [2]})
class MAXThermostat(HMThermostat, HelperLowBat, HelperValveState):
"""
BC-RT-TRX-CyG, BC-RT-TRX-CyG-2, BC-RT-TRX-CyG-3, BC-RT-TRX-CyG-4
ClimateControl-Radiator Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [1]})
self.WRITENODE.update({"SET_TEMPERATURE": [1]})
self.ACTIONNODE.update({"AUTO_MODE": [1],
"MANU_MODE": [1],
"BOOST_MODE": [1]})
self.ATTRIBUTENODE.update({"CONTROL_MODE": [1],
"VALVE_STATE": [1]})
BC-RT-TRX-CyG, BC-RT-TRX-CyG-2, BC-RT-TRX-CyG-3, BC-RT-TRX-CyG-4
ClimateControl-Radiator Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [1]})
self.WRITENODE.update({"SET_TEMPERATURE": [1]})
self.ACTIONNODE.update({"AUTO_MODE": [1],
"MANU_MODE": [1],
"BOOST_MODE": [1]})
self.ATTRIBUTENODE.update({"CONTROL_MODE": [1],
"VALVE_STATE": [1]})
class MAXWallThermostat(HMThermostat, HelperLowBat):
"""
BC-TC-C-WM-4
ClimateControl-Wall Thermostat that measures temperature and allows to set a target temperature or use some automatic mode.
"""
def __init__(self, device_description, proxy, resolveparamsets=False):
super().__init__(device_description, proxy, resolveparamsets)
# init metadata
self.SENSORNODE.update({"ACTUAL_TEMPERATURE": [1]})
self.WRITENODE.update({"SET_TEMPERATURE": [1]})
self.ACTIONNODE.update({"AUTO_MODE": [1],
"MANU_MODE": [1],
"BOOST_MODE": [1]})
self.ATTRIBUTENODE.update({"CONTROL_MODE": [1]})
class IPThermostat(HMThermostat, HelperRssiDevice, HelperLowBatIP, HelperValveState):