This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automation for Dhuhr, Asr, Maghrib, and Isha Adhan | |
- action: | |
- alias: '' | |
data: | |
entity_id: media_player.family_room_speaker # replace with your Google Home's id | |
media_content_id: https://www.youtube.com/watch?v=ADLO-Hm_nCQ # replace with your choice of Adhan | |
media_content_type: audio/youtube | |
service: media_extractor.play_media | |
- data: | |
entity_id: media_player.family_room_speaker # replace with your Google Home's id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ServiceModel; | |
using System.Threading; | |
public class Retry | |
{ | |
private const int RateLimitExceededErrorCode = -2147015902; | |
private const int TimeLimitExceededErrorCode = -2147015903; | |
private const int ConcurrencyLimitExceededErrorCode = -2147015898; |