Sensor value minus 1

Hi,

I would like to make a sensor, which shows the output of example.sensor - 1.

Lets say that example.sensor outputs 5, than I would like to let the output of the new sensor be 4. Is this possible? I’ve tried some things with the platform template sensors, but could’t get it to work.

Show your template sensor attempt please, this could be your solution
There is also something like this, is a bit more complex as you only want to reduce with 1
Compensation - Home Assistant (home-assistant.io)

1 Like