Hello
I want to delete one particular identity from the history based on a manual trigger.
Below is my code, which clearly has something wrong with it. Can someone help me on my way?
- alias: 'Energiemeter reset'
trigger:
- platform: state
entity_id: input_boolean.test_switch
from: "off"
to: "on"
action:
service: recorder.purge
data:
recorder:
include:
entities:
- sensor.energiemeter_kwh```