Yes, this works for me as well after installing the latest version of Hasbian. (No need for the other steps above when using this latest version of Hasbian with hass-0.55).
Note that compiling and setting up can take up to 40 minutes (just so people know you have to be patient).
I think I got hassbian working now (I ignored the errors and continued with copying over my config files).
So now I have a sensor.tradfri_motion_sensor in Hass.
But I don’t see any change in attributes/status when motion is detected.
Anyone know how we can receive this?
It depends. I think you can just keep using the remote in parallel to home assistant if you prefer. Homeassistant keeps track of the state as well ( i.e. if you switch with the remote, hass will know).For the rest I only see ‘60%’ battery ( for my newly purchased remote…).
But there is no useful information coming from the remote itself as far as I know, if that is what you are asking.
So now I have a sensor.tradfri_motion_sensor in Hass.
But I don’t see any change in attributes/status when motion is detected.
Anyone know how we can receive this?
Starting from today without any update i get this error:
2017-10-31 20:32:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/tradfri.py”, line 61, in configuration_callback
DEFAULT_ALLOW_TRADFRI_GROUPS)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/tradfri.py”, line 125, in _setup_gateway
api = yield from api_factory(host, key, loop=hass.loop)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py”, line 152, in api_factory
yield from request(Command(‘get’, [‘status’]))
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py”, line 117, in request
result = yield from _execute(api_commands)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py”, line 109, in _execute
api_command.result = _process_output(res, parse_json)
File “/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py”, line 176, in _process_output
return json.loads(output)
File “/usr/lib/python3.5/json/init.py”, line 319, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.5/json/decoder.py”, line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.5/json/decoder.py”, line 357, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Thanks to all the developer that fixed this issue.
I’ve just updated to the new version following the default upgrade instructions and, after a reboot of HA, a reboot of the Gateway and a complete re-configuration, it worked.