Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.27.1 #3060

Merged
merged 24 commits into from
Aug 30, 2016
Merged

0.27.1 #3060

Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7940648
0.28.0.dev0
robbiet480 Aug 28, 2016
17a57d3
Fixes wrong statevalue and problem with zwave setpoint (#3017)
turbokongen Aug 28, 2016
3313995
fix voluptuous and cover autodiscovery (#3022)
pvizeli Aug 28, 2016
2a5ca1c
Map Modes to setpoint indexes (#3023)
turbokongen Aug 28, 2016
2d8bc75
Ecobee (#3025)
turbokongen Aug 28, 2016
821b3d7
Bug fix for asuswrt device_tracker. Issue #3015 (#3016)
Danielhiversen Aug 28, 2016
b6ad0bf
Allow user to configure server id to perform speed test against (#3008)
Aug 29, 2016
1699885
Fix media_player descriptions and select_source (#3030)
MartinHjelmare Aug 29, 2016
39402af
Remove units for humidity in Wundeground sensor (#3018)
arsaboo Aug 29, 2016
62bbda1
Bug fix for asuswrt device_tracker. Issue #3015
Aug 29, 2016
6275cff
Merge pull request #3036 from home-assistant/bug_fix_asuwrt
Danielhiversen Aug 29, 2016
1b718c6
Fix bug in wemo discovery caused by voluptuous addition. (#3027)
pavoni Aug 29, 2016
008e300
Upgrade TwitterAPI to 2.4.2 (#3043)
fabaff Aug 29, 2016
c1794d1
Upgrade sendgrid to 3.2.10 (#3044)
fabaff Aug 29, 2016
4e04436
Use voluptuous for smtp (#3048)
pvizeli Aug 29, 2016
650ec1a
Added option to use effect:random for Flux Led light bulbs
tchellomello Aug 29, 2016
16e0187
Merge pull request #3051 from tchellomello/added_random_effect_flux_led
Danielhiversen Aug 30, 2016
55d3053
Device tracker component & platform validation. No more home_range. (…
kellerza Aug 30, 2016
cf9b49a
update ha-ffmpeg version to 0.9 (#3059)
pvizeli Aug 30, 2016
7ceb22a
Ecobee (#3055)
turbokongen Aug 30, 2016
eec96ea
Migrate to voluptuous (#2954)
fabaff Aug 30, 2016
9a4447c
0.28.1
robbiet480 Aug 30, 2016
d907902
0.27.1 NOT 0.28.1, thanks for the catch @arsaboo
robbiet480 Aug 30, 2016
e9354bb
Make pep8 happy
robbiet480 Aug 30, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Map Modes to setpoint indexes (#3023)
* Map Modes to setpoint indexes

* Fixes devices with no thermostat mode

* another try to fix devices without mode

* another try to fix devices without mode 2

* another try to fix devices without mode 3

* fix setting setpoint for devices with no mode

* fix setting setpoint for devices with no mode
  • Loading branch information
turbokongen authored Aug 28, 2016
commit 2a5ca1c873203b86619bce8d59d72d897219d143
45 changes: 33 additions & 12 deletions homeassistant/components/climate/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,21 @@
REMOTEC_ZXT_120_THERMOSTAT: WORKAROUND_ZXT_120
}

ZXT_120_SET_TEMP = {
SET_TEMP_TO_INDEX = {
'Heat': 1,
'Cool': 2,
'Auto': 3,
'Aux Heat': 4,
'Resume': 5,
'Fan Only': 6,
'Furnace': 7,
'Dry Air': 8,
'Auto Changeover': 10
'Moist Air': 9,
'Auto Changeover': 10,
'Heat Econ': 11,
'Cool Econ': 12,
'Away': 13,
'Unknown': 14
}


Expand Down Expand Up @@ -109,7 +119,14 @@ def update_properties(self):
for value in self._node.get_values(
class_id=COMMAND_CLASS_THERMOSTAT_SETPOINT).values():
self._unit = value.units
if self.current_operation is not None:
if SET_TEMP_TO_INDEX.get(self._current_operation) \
!= value.index:
continue
if self._zxt_120:
continue
self._target_temperature = int(value.data)

# Operation Mode
for value in self._node.get_values(
class_id=COMMAND_CLASS_THERMOSTAT_MODE).values():
Expand Down Expand Up @@ -203,21 +220,25 @@ def set_temperature(self, temperature):
"""Set new target temperature."""
for value in self._node.get_values(
class_id=COMMAND_CLASS_THERMOSTAT_SETPOINT).values():
if self._zxt_120:
# ZXT-120 does not support get setpoint
self._target_temperature = temperature
if ZXT_120_SET_TEMP.get(self._current_operation) \
!= value.index:
if self.current_operation is not None:
if SET_TEMP_TO_INDEX.get(self._current_operation) \
!= value.index:
continue
_LOGGER.debug("ZXT_120_SET_TEMP=%s and"
_LOGGER.debug("SET_TEMP_TO_INDEX=%s and"
" self._current_operation=%s",
ZXT_120_SET_TEMP.get(self._current_operation),
SET_TEMP_TO_INDEX.get(self._current_operation),
self._current_operation)
# ZXT-120 responds only to whole int
value.data = int(round(temperature, 0))
if self._zxt_120:
# ZXT-120 does not support get setpoint
self._target_temperature = temperature
# ZXT-120 responds only to whole int
value.data = int(round(temperature, 0))
else:
value.data = int(temperature)
break
else:
value.data = int(temperature)
break
break

def set_fan_mode(self, fan):
"""Set new target fan mode."""
Expand Down