wvissers / openhab2-addons-tuya

tuya device properties
25 stars 13 forks source link

Door/Window (& Motion) Sensors #2

Open ConfusedTA opened 5 years ago

ConfusedTA commented 5 years ago

Hi!

I've just got myself a WiFi door sensor, which uses SmartLife. As it's not always powered on, and only wakes up to communciate with the cloud, it seems that some of the local alternatives won't work for it.

Do you think this binding would work with getting the current status of a sensor of this type. I'm happy to help you test this with my sensor.

I think the motion sensor works in a similar way - it only wakes up and communicates to notify of a change of state.

n8suX commented 5 years ago

I can only agree. I also bought door sensors and a remote control, and I need help. What do you need to develop the channels for the DoorSensors?

Greets from Germany

wvissers commented 5 years ago

I haven't be able to interface with sensors yet. I don't think they can be added easily to this binding. The battery operated devices are probably in sleep mode most of the time, and report the status to the cloud service I think. The devices like light bulbs and switches are online all the time, and the openHAB binding is actively connecting to these devices. That cannot be done with sensors, simply because they are not always online.

JonathanGiles commented 4 years ago

I'm currently looking into the best way to expose these battery powered sensors into openhab. I wish there was a clear-cut answer as so far I've not found a solution.