windkh / node-red-contrib-shelly

Shelly control nodes for node red.
MIT License
31 stars 21 forks source link

BLU Motion sensor issues #160

Open ahartman opened 3 days ago

ahartman commented 3 days ago

Dear Karl-Heinz,

We communicated on this about a year ago; due to work I put the sensor aside. I now tried again setting this up and it works; I have 2 questions:

  1. I would think Node-Red 'sees' each time the sensor blinks red because of motion but that is not the case. it seems to miss many motion events. Is there a reason for that and can I do something about it?
  2. I would like to receive the luminance value regularly without having to wait on a motion detection; is it possible to poll the sensor for the luminance?
  3. Kind regards, ahartman, Belgium

windkh commented 3 days ago

@ahartman Hi André, about 1. the node directly forwards the events received from the blu if used in callback mode. I do not have any influence on that. If you use polling mode then you will likely miss some events.

about 2. The sensor sleeps most of the time to save energy. It does not respond to any request in that mode. If you would configure the device to wake up every few seconds to report its luminance value then it would probably quickly consume the battery power. The H&T sensor for example can be powered via usb cable... there power consumption is not a big problem.

about 3.: no idea, maybe you wrote in white or missed to ask something here?

ahartman commented 3 days ago

Karl-Heinz,

I use it in call back mode. I found out there is a blind period after sending an event, probably to save power. You can set that it the Smart Control app and it is currently on 60 seconds. Too bad about the luminance. I could set it to beacon mode, but that the battery will not last very long, I think. There was no point 3, my fault.

Met vriendelijke groeten, Kind regards, Mes meilleures salutations, Freundliche Grüße, André Hartman Rodeweg 90 B-2920 Kalmthout België

Op 2 jul 2024, om 11:10 heeft Karl-Heinz Wind @.***> het volgende geschreven:

@ahartman https://github.com/ahartman Hi André, about 1. the node directly forwards the events received from the blu if used in callback mode. I do not have any influence on that. If you use polling mode then you will likely miss some events.

about 2. The sensor sleeps most of the time to save energy. It does not respond to any request in that mode. If you would configure the device to wake up every few seconds to report its luminance value then it would probably quickly consume the battery power. The H&T sensor for example can be powered via usb cable... there power consumption is not a big problem.

about 3.: no idea, maybe you wrote in white or missed to ask something here?

— Reply to this email directly, view it on GitHub https://github.com/windkh/node-red-contrib-shelly/issues/160#issuecomment-2202430232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIBPHG3PQ4LSUTMPCQLSLZKJVADAVCNFSM6AAAAABKG7ZV5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBSGQZTAMRTGI. You are receiving this because you were mentioned.

windkh commented 2 days ago

Hi André, You could connect a light sensor to a shelly uni or shelly add-on if you need iluminance monitoring. Or you could power your BLU motion by cable.