ESP32Cam - Control WCFeature on Brightness outside with Berry Script

208 views
Skip to first unread message

Hansjörg Staeubli

unread,
Sep 29, 2022, 5:32:18 AM9/29/22
to TasmotaUsers
Hello
I have several ESP32Cam Modules with the newest Tasmota firmware. Since version 12 it's possible, to change the sensibility of the Cam with the WCFeature option.
Now I like to automate this step with the berry script.

This means that the sensitivity is adjusted depending on the outdoor light.
e.g. day = normal (wcfeature 0)
Twilight = wcfeature 1
Night = wcfeature 2

Does anyone have an idea how I can do this.

Philip Knowles

unread,
Sep 29, 2022, 5:47:30 AM9/29/22
to Hansjörg Staeubli, TasmotaUsers

Relatively simple with a rule (even if you don’t have a light sensor)

Timer1 {"Enable":1,"Mode":1,"Time":"-00:15","Window":0,"Days":"1111111","Repeat":1,"Output":1,"Action":3} // 15 minutes before sunrise

Timer2 {"Enable":1,"Mode":1,"Time":"00:15","Window":0,"Days":"1111111","Repeat":1,"Output":1,"Action":3} // 15 minutes after sunrise

Timer3 {"Enable":1,"Mode":2,"Time":"-00:15","Window":0,"Days":"1111111","Repeat":1,"Output":1,"Action":3} // 15 minutes before sunset

Timer4 {"Enable":1,"Mode":2,"Time":"00:15","Window":0,"Days":"1111111","Repeat":1,"Output":1,"Action":3} //15 minutes after sunset

 

On clock#timer1 do wcfeature 1 endon

On clock#timer2 do wcfeature 0 endon

On clock#timer3 do wcfeature 1 endon

On clock#timer4 do wcfeature 2 endon

 

but someone with Berry experience might come along later

 

Sent from Mail for Windows

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/4ca223ee-d909-4f45-9553-2b409675157en%40googlegroups.com.

 

Schaagi

unread,
Sep 29, 2022, 6:15:01 AM9/29/22
to TasmotaUsers
Hi Knowles

Thank you for your help.

I have set the 4 timers in the console now.
But where do I have to enter the "On clock#timer...." commands?

Best regards
Schaagi

Philip Knowles

unread,
Sep 29, 2022, 6:32:38 AM9/29/22
to Schaagi, TasmotaUsers

In console

Rule1 On clock#timer1 do wcfeature 1 endon On clock#timer2 do wcfeature 0 endon On clock#timer3 do wcfeature 1 endon On clock#timer4 do wcfeature 2 endon

Rule1 1

 

 

Sent from Mail for Windows

 

Reply all
Reply to author
Forward
0 new messages