igdr / node-red-contrib-xiaomi-smart-devices

8 stars 4 forks source link

Poll the sensors state #28

Open drozel opened 4 years ago

drozel commented 4 years ago

Hi, this is not an issue but a question. Sometimes i need to poll the sensors state: for example, i would like to read doors sensors state after NodeRed booting to go to correct state immediately and not after the first event (when door is opened or closed).

Is seems not to be possible from this node (utils node delivers list of sensors without any data for each one), but if it possible via API? Has Xiaomi this feature?

igdr commented 4 years ago

Hi, gateway node asks for the state automatically after nodered starts, you can easily check via debug node

drozel commented 4 years ago

@igdr do you mean that i will always receive open/close signal from each existing node as if it was opened/closed now (for the moment of nodered starting)?