adorobis

pralka automations

Dec 21st, 2025
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.00 KB | None | 0 0
  1. - id: pralka_start
  2.   alias: Pralka - Start
  3.   trigger:
  4.   - platform: numeric_state
  5.     entity_id: sensor.shenzhen_neo_electronics_co_ltd_power_plug_12a_power_6
  6.     above: '5'
  7.     for: 00:02:00
  8.   condition:
  9.   - condition: or
  10.     conditions:
  11.     - condition: state
  12.       entity_id: input_select.pralka
  13.       state: 'off'
  14.     - condition: state
  15.       entity_id: input_select.pralka
  16.       state: finished
  17.   action:
  18.   - service: input_select.select_option
  19.     entity_id: input_select.pralka
  20.     data:
  21.       option: running
  22.   mode: single
  23. - id: pralka_finished
  24.   alias: Pralka - Finish
  25.   trigger:
  26.   - platform: numeric_state
  27.     entity_id: sensor.shenzhen_neo_electronics_co_ltd_power_plug_12a_power_6
  28.     below: '5'
  29.     for: 00:05:00
  30.   condition:
  31.   - condition: state
  32.     entity_id: input_select.pralka
  33.     state: running
  34.   action:
  35.   - service: input_select.select_option
  36.     entity_id: input_select.pralka
  37.     data:
  38.       option: finished
  39.   - service: notify.mobile_app_sm_g990b2
  40.     data_template:
  41.       message: Pranie zakończone o {{ states('sensor.time') }}
  42.       title: Pranie zakończone
  43.       data:
  44.         color: blue
  45.   - if:
  46.     - condition: time
  47.       after: 06:00:00
  48.       before: '22:00:00'
  49.     then:
  50.     - service: tts.speak
  51.       target:
  52.         entity_id: tts.home_assistant_cloud
  53.       data:
  54.         media_player_entity_id:
  55.        - media_player.salon_speaker
  56.         - media_player.gray_speaker
  57.         - media_player.hall_speaker
  58.         cache: true
  59.         message: Pranie zakończone. Proszę rozładować.
  60.         language: pl-PL
  61.   mode: single
  62. - id: pralka_off
  63.   alias: Pralka - Off
  64.   trigger:
  65.   - platform: numeric_state
  66.     entity_id: sensor.shenzhen_neo_electronics_co_ltd_power_plug_12a_power_6
  67.     below: '5'
  68.     for: 00:15:00
  69.   condition:
  70.   - condition: state
  71.     entity_id: input_select.pralka
  72.     state: finished
  73.   action:
  74.   - service: input_select.select_option
  75.     entity_id: input_select.pralka
  76.     data:
  77.       option: 'off'
  78.   mode: single
Advertisement
Add Comment
Please, Sign In to add comment