Modifying the Value on a Sensor

Hello,
I have a motion sensor that measures light intensity in lux, and I use it to notify me if the light has stayed on above a certain threshold. However, sometimes the sensor gets stuck at 20 lux even when it’s dark. I would like to create a virtual button that, once pressed, resets the value to 0 lux. Is it possible to modify this value, and if so, could you guide me on how to do it? Thank you.

You can’t change sensor values for normal devices.

Perhaps you can use one of the virtual device apps to create a virtual motion sensor that can be reset like that (since those apps allow you to set capability values from flows).

Okay, thank you, I’ll try.