Automation,

Can dependencies like these be set in automation:
If V2 > V1 by 1, then turn off V3
V2 sensor
V1 sensor
V3 button (on/off)

The whole thing is dependent on not interfering with the software code.

Hello, I think it’s hard to implement. Since the first condition works on the value and not on the pin.
I mean automation

This is the sort of thing that you should do in your code.

Pete.