home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.55k stars 30.72k forks source link

LimitlessLED Unable to Connect #6279

Closed Morton16ok closed 7 years ago

Morton16ok commented 7 years ago

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.39.1

Python release (python3 --version): Python 3.4.2

Component/platform: LimitlessLED

Description of problem: Upon upgrade to 0.39.1, I am no longer able to control LimitlessLED through HA.

Expected: I expect the toggles for LimitlessLED lights to show in group views in HA. I see in the config checker that HA is unable to find LimitlessLED after upgrade.

My LimitlessLED hub is connect to wifi and verified in DD-WRT control panel and lights are controllable via MiLight Android app.

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

light:
  platform: limitlessled
  bridges:
    - host: 192.168.11.122
      groups:
      - number: 1
        type: rgbw
        name: Bedside Lamp
      - number: 2
        type: rgbw
        name: Hallway
      - number: 3
        type: rgbw
        name: Desk
      - number: 4
        type: rgbw
        name: Dining

group:
  livingroom:
    view: yes
    name: Living Room
    entities:
      - media_player.living_room
      - switch.living_room_lights
      - switch.living_room_tv
      - light.desk
      - light.dining
  1. Restarted HA, through HA developer service.
  2. Restarted HA via sudo systemctl stop home-assistant@homeassistant.service 3.Rebooted Raspi3.

Traceback (if applicable):

17-02-27 11:20:08 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform limitlessled
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
    entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/limitlessled.py", line 112, in setup_platform
    version=bridge_conf.get(CONF_VERSION, DEFAULT_VERSION))
  File "/home/homeassistant/.homeassistant/deps/limitlessled/bridge.py", line 99, in __init__
    self._init_connection()
  File "/home/homeassistant/.homeassistant/deps/limitlessled/bridge.py", line 206, in _init_connection
    self._socket.recv_into(response)
ConnectionRefusedError: [Errno 111] Connection refused

17-02-27 11:22:12 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Unknown entity number: light.desk
17-02-27 11:22:15 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Unknown entity number: light.desk
17-02-27 11:22:30 WARNING (MainThread) [homeassistant.helpers.state] reproduce_state: Unable to find entity light.desk
17-02-27 11:22:34 WARNING (MainThread) [homeassistant.helpers.state] reproduce_state: Unable to find entity light.dining
17-02-27 11:22:34 WARNING (MainThread) [homeassistant.helpers.state] reproduce_state: Unable to find entity light.hallway
17-02-27 11:22:34 WARNING (MainThread) [homeassistant.helpers.state] reproduce_state: Unable to find entity light.bedside_lamp

Additional info:

LimitlessLED toggles are not recongnized.

Morton16ok commented 7 years ago

I had to update the configuration.yaml to specify the version and the port.

light:
  platform: limitlessled
  bridges:
    - host: 192.168.11.122
      version: 4
      port: 8899
      groups:
      - number: 1
        type: rgbw
        name: Bedside Lamp
      - number: 2
        type: rgbw
        name: Hallway
      - number: 3
        type: rgbw
        name: Desk
      - number: 4
        type: rgbw
        name: Dining