8000 Decora Wi-Fi Switch unable to set brightness · Issue #8960 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Decora Wi-Fi Switch unable to set brightness #8960

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
bjm904 opened this issue Aug 13, 2017 · 2 comments · Fixed by #8989
Closed

Decora Wi-Fi Switch unable to set brightness #8960

bjm904 opened this issue Aug 13, 2017 · 2 comments · Fixed by #8989

Comments

@bjm904
Copy link
bjm904 commented Aug 13, 2017

Home Assistant release (hass --version):
0.51.1

Python release (python3 --version):
python:3.6

Component/platform:
Decora Wi-Fi

Description of problem:
Can't change the brightness of the switch

Expected:
Switch brightness change

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

light:
  - platform: decora_wifi
    username: email@example.com
    password: redacted
    scan_interval: 1
automation:
  - alias: SwitchToLightOnNight
    trigger:
      platform: state
      entity_id: light.bedroomswitch
      to: 'on'
    condition:
      condition: sun
      after: sunset
    action:
      service: light.turn_on
      entity_id: light.bedroomswitch
      data:
        brightness: 216
  1. Try to set any attribute on switch

Traceback (if applicable):

Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 182, in _step
result = coro.throw(exc)
File "/usr/src/app/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/src/app/homeassistant/components/light/__init__.py", line 279, in async_handle_light_service
yield from light.async_turn_on(**params)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/light/decora_wifi.py", line 119, in turn_on
min_level = self._switch.get('minLevel', 0)
File "/config/deps/lib/python3.6/site-packages/decora_wifi/base_model.py", line 23, in __getattribute__
return super(BaseModel, self).__getattribute__(name)
AttributeError: 'IotSwitch' object has no attribute **'get'�[0m**

Additional info:
Switch is DW6HD-1BZ Decora Smart Wi-Fi 600W

@bjm904
Copy link
Author
bjm904 commented Aug 13, 2017

@tlyakhov This is the same switch you used for testing. Also thank you for taking the time to set this up, been waiting eagerly.

@bjm904 bjm904 changed the title Decora Wi-Fi Switch unable to interact Decora Wi-Fi Switch unable to set brightness Aug 13, 2017
@tlyakhov
Copy link
Contributor

Got it. Thanks for the report! Will submit a fix tonight or tomorrow.

tlyakhov added a commit to tlyakhov/home-assistant that referenced this issue Aug 15, 2017
@balloob balloob mentioned this issue Aug 25, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 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

Successfully merging a pull request may close this issue.

2 participants
0