#Triggering from certain state to certain state possible?

1 messages · Page 1 of 1 (latest)

maiden wyvern
#

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
  • 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'''
high eagleBOT
#

@maiden wyvern To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

royal wadi
#

With a state trigger using from and to. Not with a numeric state trigger.