Help with Illuminance sensor

I am using the Sonoff SN2B 03P Motion sensor with illuminance. Using the Tuya Multi Sensor 4 in 1 driver. What I want to do is turn the lights on with motion when the illum state is dark. When making a rule using the illuminance state rule machine wants a number. The sensor uses dark or light no numbers. I tried making a custom action but that did not work either, there was no setting for illum state. Any suggestions?

Please show a screenshot of this device's "Current States". It sounds like you may need to use a conditional statement in Rule Machine to check the value of a custom attribute to see if the value is 'dark' versus 'light'.

Is the driver you are using a custom, community created driver? If so, please post a link to it.

1 Like

The info you requested.

The driver can be installed manually from: https://raw.githubusercontent.com/kkossev/Hubitat/main/Drivers/Tuya%20Multi%20Sensor%204%20In%201/Tuya%20Multi%20Sensor%204%20In%201.groovy

Hi David,

As @ogiewon suggested, you must use a Custom Attribute as a Condition :

Then select illumState and dark (or light, depending on the logic)

Then use the condition in your RM5 rule :

2 Likes

Thanks, I will give it a try.

It is working as expected. I have not had to use "custom attribute" before. Thanks for the Information.

2 Likes

I thought this sensor (SONOFF_SNZB_03P) was working correctly, but they are not transitioning from light to dark or dark to light correctly. Last night it was very dark in the bathroom, but the light would not come on. I checked the device and it said it was 'light". Is there something I am missing with this device? Also, I have 2 of these and one has 9 current states listed and one has only 5 shouldn't they be the same.


I have re-paired the device with 5 current states and now it reports 8 current states. I still do not know why the dark to light does not update.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.