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.23k stars 30.58k forks source link

TPLink Switch not working via /dev-service but via normal interface switch #10382

Closed msenebald closed 6 years ago

msenebald commented 6 years ago

Home Assistant release (hass --version): 0.57.1 / official docker image tag 0.57.1

Python release (python3 --version): Python 3.6.3

Component/platform: TP Link Switch HS110(eu)

Description of problem: Calling switch via RestAPI/dev-service interface does not switch the switch. Using the normal browser switch interface/ios app works as normal

Expected: Switch should be switched via API

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

Call via /dev-service interface not working /dev-service

Log Comparison of call via /dev-service and via "normal" User Interface

https://hastebin.com/ehuxajarir.php

Traceback (if applicable):

Debug Comparison Call via /dev-service https://hastebin.com/qusoxuzeze.php

Call via Interface https://hastebin.com/elejepibuj.php (shortened at end)

Additional info: Via the /dev-service this line is not to be found but in the debug log. It seems the worker does not pick the task up or it gets lost somewhere else.

2017-11-05 18:57:29 DEBUG (SyncWorker_0) [pyHS100.protocol] > (45) {"system": {"set_relay_state": {"state": 1}}}
msenebald commented 6 years ago

uh that was a bad typo.. got the problem..