Shelly Presence Gen4 - motion and lux set up

Can someone please help me with this am trying to get homey to turn on the lights only when the brightness is dark (below 20 lux) and when motion is detected.I just don’t know how to set this up

Something like this:

  • WHEN Motion is detected (motion detector goes on)
  • AND Brightness is less than 20 lux
  • THEN Switch on light

Use a Logic card to check the current brightness. It should be stored in the brightness tag of your sensor.

Note the example is based on a different sensor, but the method/flow should be similar.

I don’t have the logic card where I can select “Brightness is less than 20 lux” I did for the aqara pf300 but not for the shelly

You need to select the generic ‘Number is less than number’ flowcard, that is shown in the middle of your screenshot.

After inserting, when you click the first ‘number’ parameter in the card (the one with the tag icon) you get a list of all your devices and sensor values. Start typing the name of your presence sensor in the search field or scroll down in the list until you locate your device. There you’ll see the available tags/sensor values (in blue tags). The brightness value should normally be included there. Click it and it will be included in the flowcard.

As an example (my Homey is set to Dutch, but hopefully you understand). In my case ‘Helderheid’ is the brightness tag.

However…

I just checked the specifications of the Shelly Presence Gen4 on the product page, and it says the following:

This would mean that your sensor is not providing numeric lux values, but three text based fixed levels: Dark, Twilight and Bright. If that is actually the case then you won’t be able to check lux values. I assume though that the three distinct levels are available as a text tag (green). You can test the value using one of the other Logic cards that allow a Text parameter to be provided (check your screenshot).

Apparently the upcoming firmware version for current Shelly devices (v2.0.1) makes available the lux values when the presence sensor is connected via Matter.

The change log of the beta version mentions: