Skip to content

Instantly share code, notes, and snippets.

View mohsinonxrm's full-sized avatar
🎯
Focusing

mohsinonxrm mohsinonxrm

🎯
Focusing
View GitHub Profile
@mohsinonxrm
mohsinonxrm / automations.yaml
Created September 19, 2022 00:29 — forked from OJ7/automations.yaml
Automate Playing Adhan on Google Home (using Home Assistant)
# 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
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;