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

Zwave climate fix and wink cover. #3205

Merged
merged 6 commits into from
Sep 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions homeassistant/components/climate/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
node = zwave.NETWORK.nodes[discovery_info[ATTR_NODE_ID]]
value = node.values[discovery_info[ATTR_VALUE_ID]]
value.set_change_verified(False)
if value.index != 1: # Only add 1 device
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to revert 80a82ef to restore functionality on my thermostat.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What thermostat are you using? There seems to be a lot of non standard implementations by thermostats

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide the zwcfg_xxxxx.xml for this device?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you test with replacing value.index with value.instance

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guys: How can I test this custom code?
My thermostat is for sure "non standard" as @turbokongen mentions.
Do I need a developer environment? At this time. I have a standard install with 0.28.2

add_devices([ZWaveClimate(value, temp_unit)])
_LOGGER.debug("discovery_info=%s and zwave.NETWORK=%s",
discovery_info, zwave.NETWORK)
Expand Down Expand Up @@ -158,6 +160,17 @@ def update_properties(self):
continue
if self._zxt_120:
continue
self._target_temperature = int(value.data)
_LOGGER.debug("Get setpoint value: SET_TEMP_TO_INDEX=%s and"
" self._current_operation=%s",
SET_TEMP_TO_INDEX.get(self._current_operation),
self._current_operation)
break
_LOGGER.debug("Get setpoint value not matching any "
"SET_TEMP_TO_INDEX=%s and "
"self._current_operation=%s. Using value.data=%s",
SET_TEMP_TO_INDEX.get(self._current_operation),
self._current_operation, int(value.data))
self._target_temperature = int(value.data)

@property
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/wink.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def setup(hass, config):
('binary_sensor', pywink.get_sensors),
('sensor', lambda: pywink.get_sensors or pywink.get_eggtrays),
('lock', pywink.get_locks),
('rollershutter', pywink.get_shades),
('garage_door', pywink.get_garage_doors)):
('cover', pywink.get_shades),
('cover', pywink.get_garage_doors)):

if func_exists():
discovery.load_platform(hass, component_name, DOMAIN, {}, config)
Expand Down