home-assistant-libs / pytradfri

IKEA Trådfri/Tradfri API. Control and observe your lights from Python. Examples available. On pypi. Sans-io.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

observing dimmers / motion sensors

perericr opened this issue · comments

Using master pytradfri as standalone, with backend libcoap.

I am looking in the documentation and in the device objects for a way to get either event data or status from dimmers and motions sensors. Getting status is possible for lights, but it would be nice if it would be possible for controlling devices.

Expected behaviour: Either

  1. Documentation that this is not possible (or just not implemented yet)
  2. Implementation and documentation of some parameter for the callback, showing if a click was "on" or "off" for example.
  3. Implementation and documentation of status structure for each device containing last event, if that is how it works

Wishlist, of course.
I tried to find a user och dev mailing list or contact address, but none found so posting as wishlist issue.

I actually haven't looked into this in a while but it hasn't been supported by the gateway, that's why the library doesn't support it. But the gateway has since been updated with new versions. Could I ask you to please have a look and see if you can observe changes to a motion sensor in your setup?

Thanks. I do get a callback when starting to observe motion sensors, but nothing for any sensing event. I do however get a callback for button presses when observing dimmers, even if there is no information on which button was pressed.

I can (as expected) also watch a light controlled by the motion sensor. I suppose that is how to do for now if getting readings from a motion sensor - setup a dummy light or on/off switch and watch that device.

The gateway is running firmware 1.11.51.

Thanks for looking into this. Seems like there is still no support then. 😔

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days