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

Commit

Permalink
Merge pull request #177 from danielperna84/devel
Browse files Browse the repository at this point in the history
0.1.51
  • Loading branch information
danielperna84 authored Oct 14, 2018
2 parents 241ff4e + 617be9d commit 5b6dcbc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include README.rst
include LICENSE.txt
include LICENSE.txt
include pyhomematic/devicetypes/json/device_descriptions.json
include pyhomematic/devicetypes/json/device_details.json
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 0.1.51 (2018-10-14)
- Added device_descriptions.json to distributed package to allow performing tests with vccu
- Add valve level to IP Thermostat attributes @hanzoh
- Added HmIP-SLO @noxhirsch

Version 0.1.50 (2018-10-01)
- Added Support for HmIP-FROLL @jplck
- Added missing channel for HM-LC-Dim2T @danielperna84
Expand Down
15 changes: 15 additions & 0 deletions pyhomematic/devicetypes/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,20 @@ def get_air_pressure(self, channel=None):
return int(self.getSensorData("AIR_PRESSURE", channel))


class IPBrightnessSensor(HMSensor, HelperRssiDevice):
"""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]})
self.ATTRIBUTENODE.update({"OPERATING_VOLTAGE": [0]})


DEVICETYPES = {
"HM-Sec-SC": ShutterContact,
"HM-Sec-SC-2": ShutterContact,
Expand Down Expand Up @@ -796,4 +810,5 @@ def get_air_pressure(self, channel=None):
"HmIP-STHO-A": IPAreaThermostat,
"HmIP-SPDR": IPPassageSensor,
"IT-Old-Remote-1-Channel": SmartwareMotion,
"HmIP-SLO": IPBrightnessSensor,
}
3 changes: 2 additions & 1 deletion pyhomematic/devicetypes/thermostats.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ def __init__(self, device_description, proxy, resolveparamsets=False):
"OPERATING_VOLTAGE": [0],
"SET_POINT_MODE": [1],
"BOOST_MODE": [1],
"VALVE_STATE": [1]})
"VALVE_STATE": [1],
"LEVEL": [1]})

def get_set_temperature(self):
""" Returns the current target temperature. """
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def readme():

PACKAGE_NAME = 'pyhomematic'
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION = '0.1.50'
VERSION = '0.1.51'

PACKAGES = find_packages(exclude=['tests', 'tests.*', 'dist', 'build'])

Expand Down

0 comments on commit 5b6dcbc

Please sign in to comment.