8000 Cover (Rolleshutter) don't stop anymore · Issue #3093 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cover (Rolleshutter) don't stop anymore #3093

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

Closed
blackgearit opened this issue Sep 1, 2016 · 8 comments
Closed

Cover (Rolleshutter) don't stop anymore #3093

blackgearit opened this issue Sep 1, 2016 · 8 comments

Comments

@blackgearit
Copy link
blackgearit commented Sep 1, 2016

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.27.1

Python release (python3 --version):
3.4.2

Component/platform:
Cover/Zwave (ex rollershutter)

Description of problem:
Stop button not work. When changing position with arrows, I can't stop the cover in wanted position by pressing the stop button, the cover goes to the top or to the bottom.

Expected:
When moving with arrow (service up/down) I should stop the cover in the current position by clicking on stop button.

Problem-relevant configuration.yaml entries and steps to reproduce:

customize:
    cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_2:
      friendly_name: Tenda Soggiorno
      icon: mdi:weather-partlycloudy
    cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_4:
      friendly_name: Tenda Cameretta
      icon: mdi:weather-partlycloudy
    sensor.fibaro_system_fgrm222_roller_shutter_controller_2_energy_2:
      hidden: true
    sensor.fibaro_system_fgrm222_roller_shutter_controller_2_energy_4:
      hidden: true
    sensor.fibaro_system_fgrm222_roller_shutter_controller_2_power_2:
      hidden: true
    sensor.fibaro_system_fgrm222_roller_shutter_controller_2_power_4:
      hidden: true
    sensor.fibaro_system_fgrm222_roller_shutter_controller_2_previous_reading_2:
      hidden: true
    sensor.fibaro_system_fgrm222_roller_shutter_controller_2_previous_reading_4:
      hidden: true

group:
  group.all_covers:
    name: Tende da sole
    icon: mdi:sunglasses
    entities:
      - cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_2
      - cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_4

Additional info:
When press the stop button, there's no popup with "service stop called", it appears sometimes few seconds after i've pressed the stop button, but has no effect.
the only way to stop cover in middle positions is by using the "set position" slider.

@turbokongen
Copy link
Contributor

@nunofgs Do you exeperience the same issue?

@turbokongen
Copy link
Contributor

@blackgearit Any info from the logs? errors, tracebacks?

@blackgearit
Copy link
Author
blackgearit commented Sep 1, 2016

@turbokongen sorry, here it is

16-08-31 07:50:12 homeassistant.config: Incomplete core config. Auto detected time_zone: Europe/Rome
16-08-31 07:55:52 openzwave: Error in manager callback
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/network.py", line 950, in zwcallback
    self._handle_value_changed(args)
  File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/network.py", line 1501, in _handle_value_changed
    'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/dispatcher.py", line 338, in send
    **named
  File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/robustapply.py", line 55, in robustApply
    return receiver(*arguments, **named)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/cover/zwave.py", line 84, in value_changed
    self.update_ha_state()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 147, in update_ha_state
    raise RuntimeError("Attribute hass is None for {}".format(self))
RuntimeError: Attribute hass is None for <Entity FIBARO System FGRM222 Roller Shutter Controller 2 Level: open>
16-08-31 07:55:53 homeassistant.components.cover: Error while setting up platform zwave
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
    discovery_info)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/cover/zwave.py", line 41, in setup_platform
    add_devices([ZwaveRollershutter(value)])
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 155, in add_entities
    if self.component.add_entity(entity, self):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 125, in add_entity
    entity.update_ha_state()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 156, in update_ha_state
    state = STATE_UNKNOWN if self.state is None else str(self.state)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/cover/__init__.py", line 179, in state
    closed = self.is_closed
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/cover/zwave.py", line 99, in is_closed
    if self.current_cover_position > 0:
TypeError: unorderable types: NoneType() > int()
16-08-31 22:06:02 homeassistant.components.conversation: Unable to process: 
16-09-01 01:30:14 pychromecast.socket_client: Heartbeat timeout, resetting connection
16-09-01 01:30:44 pychromecast.socket_client: Failed to connect, retrying in 5.000000s
Traceback (most recent call last):
  File "/home/pi/.homeassistant/deps/pychromecast/socket_client.py", line 233, in initialize_connection
    self.socket.connect((self.host, self.port))
  File "/usr/lib/python3.4/ssl.py", line 840, in connect
    self._real_connect(addr, False)
  File "/usr/lib/python3.4/ssl.py", line 827, in _real_connect
    socket.connect(self, addr)
socket.timeout: timed out
16-09-01 07:34:09 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:10 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:12 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:24 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:24 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:25 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:25 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:26 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:34 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 07:34:57 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 08:02:47 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 08:02:49 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 08:02:50 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 08:02:50 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 08:02:51 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 08:03:03 homeassistant.core: Unable to find service cover/stop_cover

(@robbiet480 updated to format log message for readability)

@turbokongen
Copy link
Contributor

Please test bugfix :)

@nvella
Copy link
nvella commented Sep 1, 2016

I also experience this on 0.27.1 with MQTT covers. The STOP message never reaches the MQTT bus. Here are some relevant log entries:

16-09-01 23:18:25 INFO (CP Server Thread-11) [homeassistant.core] Bus:Handling <Event call_service[L]: service=stop_cover, service_data=entity_id=cover.lounge_side
16-09-01 23:18:25 WARNING (ThreadPool Worker 3) [homeassistant.core] Unable to find service cover/stop_cover

@blackgearit
Copy link
Author

@turbokongen same issue after editing
/usr/local/lib/python3.4/dist-packages/homeassistant/components/cover/zwave.py
as bugfix you've referenced. After changes, I've restart HA by web interface... should restart daemon instead?

16-09-01 20:29:45 homeassistant.config: Incomplete core config. Auto detected time_zone: Europe/Rome
16-09-01 20:30:04 openzwave: Error in manager callback
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/network.py", line 950, in zwcallback
self._handle_value_changed(args)
File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/network.py", line 1501, in _handle_value_changed
'value' : self.nodes[args['nodeId']].values[args['valueId']['id']]})
File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/dispatcher.py", line 338, in send
*_named
File "/usr/local/lib/python3.4/dist-packages/PyDispatcher-2.0.5-py3.4.egg/pydispatch/robustapply.py", line 55, in robustApply
return receiver(_arguments, **named)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/cover/zwave.py", line 84, in value_changed
self.update_ha_state()
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 147, in update_ha_state
raise RuntimeError("Attribute hass is None for {}".format(self))
RuntimeError: Attribute hass is None for <Entity FIBARO System FGRM222 Roller Shutter Controller 2 Level: open>
16-09-01 21:21:52 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 21:21:53 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 21:21:54 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 21:21:57 homeassistant.core: Unable to find service cover/stop_cover
16-09-01 21:21:58 homeassistant.core: Unable to find service cover/stop_cover

@turbokongen
Copy link
Contributor

You need to apply the whole patch. To test the fix. Also you need to restart the HA core.

@turbokongen
Copy link
Contributor

Confirmed fixed at #3116

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0