Guest User

ovencooking

a guest
Mar 18th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.61 KB | Source Code | 0 0
  1. alias: OvenCooking
  2. description: ""
  3. triggers:
  4.   - type: power
  5.     device_id: YOUR_PM_DEVICE_ID
  6.     entity_id: YOUR_PM_ENTITY_ID
  7.     domain: sensor
  8.     trigger: device
  9.     above: 2000
  10.     for:
  11.       hours: 0
  12.       minutes: 0
  13.       seconds: 15
  14. conditions:
  15.   - condition: state
  16.     entity_id: input_boolean.ovencookinghelper
  17.     state: "off"
  18.     for:
  19.       hours: 0
  20.       minutes: 5
  21.       seconds: 0
  22. actions:
  23.   - action: input_boolean.toggle
  24.     metadata: {}
  25.     data: {}
  26.     target:
  27.       entity_id: input_boolean.ovencookinghelper
  28.   - action: notify.YOUR_NOTIFY_GROUP
  29.     metadata: {}
  30.     data:
  31.       message: Oven is heating up
  32.   - wait_for_trigger:
  33.       - trigger: numeric_state
  34.         entity_id:
  35.          - sensor.YOURPMDEVICENAME_power
  36.         for:
  37.           hours: 0
  38.           minutes: 0
  39.           seconds: 15
  40.         above: 30
  41.         below: 100
  42.     timeout:
  43.       hours: 0
  44.       minutes: 30
  45.       seconds: 0
  46.       milliseconds: 0
  47.   - action: notify.YOUR_NOTIFY_GROUP
  48.     metadata: {}
  49.     data:
  50.       message: Oven is warmed up. insert the food!
  51.   - wait_for_trigger:
  52.       - trigger: numeric_state
  53.         entity_id:
  54.          - sensor.YOURPMDEVICENAME_power
  55.         for:
  56.           hours: 0
  57.           minutes: 0
  58.           seconds: 15
  59.         below: 1
  60.     timeout:
  61.       hours: 4
  62.       minutes: 0
  63.       seconds: 0
  64.       milliseconds: 0
  65.   - action: notify.YOUR_NOTIFY_GROUP
  66.     metadata: {}
  67.     data:
  68.       message: Food is ready!!
  69.   - action: input_boolean.toggle
  70.     metadata: {}
  71.     data: {}
  72.     target:
  73.       entity_id: input_boolean.ovencookinghelper
  74. mode: single
Advertisement
Add Comment
Please, Sign In to add comment