Leggin / dirigera

This repository provides an unofficial Python client for controlling the IKEA Dirigera Smart Home Hub.
MIT License
105 stars 20 forks source link

Motion sensor support #23

Closed angeloz closed 1 year ago

angeloz commented 1 year ago

I'd love to have motion sensors support in the event listener. Thank you!

anwac commented 1 year ago

Agree, that would be great.

Right now I assigned an outlet to the motion sensors and monitor its state via an event listener. The current event listener example errors with

name 'bed_light' is not defined

but after removing those specifics it works great. So does the setup. Which is awesome.

Leggin commented 1 year ago

Hey, the events that are published is decided by the hub itself. So as far as I know there is no way to add something to the events. For example the click of a switch is also not an event that is published, only the action that is triggered by that switch (i.e. lamp on/off) is an event. That is by design from IKEA this way.