I am a relative newbee to HA and could do with some help
I have an MQTT sensor measuring aggregated Oil Usage using a meter with a pulsed output
Mqtt sensors
mqtt:
sensor:
- name: “Heating Oil Consumption”
state_topic: “1778385702/TCh1”
unit_of_measurement: ‘l’
value_template: “{{ value | multiply(0.02) | round(2) }}”
This works perfectly
I now wish to subtract this value from the original tank oil volume which was 1600 litres so that I can display the remaining volume as oil is consumed ie. 1600 - (total oil usage)
How can I go about this please ?