Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Azan Maghrib 25min Reminder
- description: ''
- trigger:
- - platform: template
- value_template: >-
- {{state_attr("sensor.esolat_maghrib", "24hours") ==
- (as_local(now()).strftime("%s") | int + (25*60)) |
- timestamp_custom("%H:%M", false)}}
- condition: []
- action:
- - service: tts.google_say
- data:
- message: It is 15 minutes before Maghrib! Get prepare.
- entity_id: media_player.all_devices
- language: en
- - delay:
- hours: 0
- minutes: 0
- seconds: 10
- milliseconds: 0
- - service: media_player.play_media
- data:
- media_content_type: audio/mp3
- media_content_id: media-source://media_source/local/audio/alfatihah.mp3
- entity_id: media_player.all_devices
- - delay:
- hours: 0
- minutes: 0
- seconds: 37
- milliseconds: 0
- - service: media_player.play_media
- data:
- media_content_type: audio/mp3
- media_content_id: |
- {{ ["media-source://media_source/local/audio/arrahman.mp3",
- "media-source://media_source/local/audio/almuminun.mp3",
- "media-source://media_source/local/audio/aljumuah.mp3",
- "media-source://media_source/local/audio/abasa.mp3",
- ] | random }}
- extra:
- title: Surah
- entity_id: media_player.all_devices
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement