Hi! I’m running hassbian on a raspberry pi2 B and I’m trying to set up my pebble watch to toggle my bedroom lamp.
I’ve attached a picture with where I am, but it isn’t working.
I’m using:
POST
http://NAME.duckdns.org:8123/api/services/switch/toggle?api_password=MYPASSWORD
{“entity_id”: “switch.bedroom_lamp”}
When I test this, I get this in the log:
17-04-25 19:16:17 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/deps/aiohttp/web_protocol.py", line 417, in start
resp = yield from self._request_handler(request)
File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 289, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware_handler
return (yield from handler(request))
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/http/__init__.py", line 425, in handle
result = yield from result
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/api.py", line 314, in post
data = json.loads(body) if body else None
File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
I’m not sure where to go form here. Any help is appreciated!