Is This Possible

You can’t take the value from a sensor, change it, write it back to the same sensor, and expect it to stick. Disable the automatic pull of the virtual sensor from wherever it is getting its data. Change the getstate() to use that source (so read from source, scale/modify reading, save result to virtual sensor).

No interval needed, and you should not use it.

Ok thank you