How can i make a trigger that works by only going from a specific state to another specific state?
Here is the yaml:
'''alias: "car charger: complete"
description: ""
triggers:
- trigger: numeric_state
entity_id:- sensor.charger_current_import
below: 2
- sensor.charger_current_import
- type: turned_off
device_id: 39532d4e686f8fa98d291b8b9caf2732
entity_id: cf97129c53204ecc497835ee8cf9dbb5
domain: switch
trigger: device
conditions: - condition: numeric_state
entity_id: input_number.car_charger_kwh_selector
below: 1 - condition: state
entity_id: input_boolean.car_charging_helper_solar_preferred
state: "off"
actions: - action: telegram_bot.send_message'''