Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: pralka_start
- alias: Pralka - Start
- trigger:
- - platform: numeric_state
- entity_id: sensor.shenzhen_neo_electronics_co_ltd_power_plug_12a_power_6
- above: '5'
- for: 00:02:00
- condition:
- - condition: or
- conditions:
- - condition: state
- entity_id: input_select.pralka
- state: 'off'
- - condition: state
- entity_id: input_select.pralka
- state: finished
- action:
- - service: input_select.select_option
- entity_id: input_select.pralka
- data:
- option: running
- mode: single
- - id: pralka_finished
- alias: Pralka - Finish
- trigger:
- - platform: numeric_state
- entity_id: sensor.shenzhen_neo_electronics_co_ltd_power_plug_12a_power_6
- below: '5'
- for: 00:05:00
- condition:
- - condition: state
- entity_id: input_select.pralka
- state: running
- action:
- - service: input_select.select_option
- entity_id: input_select.pralka
- data:
- option: finished
- - service: notify.mobile_app_sm_g990b2
- data_template:
- message: Pranie zakończone o {{ states('sensor.time') }}
- title: Pranie zakończone
- data:
- color: blue
- - if:
- - condition: time
- after: 06:00:00
- before: '22:00:00'
- then:
- - service: tts.speak
- target:
- entity_id: tts.home_assistant_cloud
- data:
- media_player_entity_id:
- - media_player.salon_speaker
- - media_player.gray_speaker
- - media_player.hall_speaker
- cache: true
- message: Pranie zakończone. Proszę rozładować.
- language: pl-PL
- mode: single
- - id: pralka_off
- alias: Pralka - Off
- trigger:
- - platform: numeric_state
- entity_id: sensor.shenzhen_neo_electronics_co_ltd_power_plug_12a_power_6
- below: '5'
- for: 00:15:00
- condition:
- - condition: state
- entity_id: input_select.pralka
- state: finished
- action:
- - service: input_select.select_option
- entity_id: input_select.pralka
- data:
- option: 'off'
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment