Activate external light when selecting a camera in BI or UI3

Sailing

n3wb
Jan 17, 2022
3
1
Australia
I have an ESP32 Cam in a delivery box and when I select this camera in the BI or UI3 console, I want the on board light to come on. I know how to do the programming outside of BI and currently use alerts to turn on outdoor lighting.
Is this possible?