Skip to content

Gearbest sensor not working #14813

@arsaboo

Description

@arsaboo

Home Assistant release with the issue: 0.70.1 (but it has not been working for some time now)

Last working Home Assistant release (if known): NA

Operating environment (Hass.io/Docker/Windows/etc.): Ubuntu VENV

Component/platform: Gearbest

Description of problem: The sensor is not working:

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

  - platform: gearbest
    currency: USD
    items:
      - url: https://www.gearbest.com/alarm-systems/pp_659226.html
        name: Xiaomi Aqara Human Body Sensor

Traceback (if applicable):

2018-06-04 09:04:17 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform gearbest
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/gearbest.py", line 55, in setup_platform
    converter.update()
  File "/srv/homeassistant/lib/python3.6/site-packages/gearbest_parser/gearbest_parser.py", line 59, in update
    page = urlopen(req).read().decode('utf-8')
  File "/usr/local/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions