-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlovelace-ui.yaml
185 lines (160 loc) · 5.56 KB
/
lovelace-ui.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
## [ Configuration Panel ] ##
type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.hijridate
- entity: binary_sensor.esolat_version
- type: conditional
conditions:
- entity: binary_sensor.esolat_version
state_not: 'off'
row:
type: button
tap_action:
action: call-service
service: script.esolat_updater
data: {}
confirmation:
text: This will update eSolat. Continue?
action_name: Update
icon: mdi:update
name: eSolat Updater
- type: section
label: State Code & Source
- entity: select.solat_source
- type: conditional
conditions:
- entity: select.solat_source
state_not: Islamic Prayer Times
row:
entity: input_text.solat
- type: section
label: Azan Audio & Automation
- entity: select.azan_media_players
- entity: input_select.azan_player
- type: conditional
conditions:
- entity: input_select.azan_player
state: Google
state_not: Custom
row:
entity: select.azan_tts
- type: conditional
conditions:
- entity: input_select.azan_player
state: Google
state_not: Custom
row:
entity: input_text.selected_audio_azan
- type: conditional
conditions:
- entity: input_select.azan_player
state: Google
state_not: Custom
row:
entity: input_text.selected_audio_azan_subuh
- type: conditional
conditions:
- entity: input_select.azan_player
state: Alexa
state_not: Custom
row:
entity: input_text.home_url
- type: conditional
conditions:
- entity: input_select.azan_player
state: Google
state_not: Custom
row:
entity: number.azan_volume
- type: section
label: Manual Control
- type: call-service
service: rest.reload
data: {}
name: Online Sensors (eSolat/AzanPro)
icon: mdi:reload
action_name: Refresh
- type: button
tap_action:
action: call-service
service: automation.trigger
data:
entity_id: automation.azan_yearly_update
name: Local Sensors
icon: mdi:reload
action_name: Refresh
title: 📿 eSolat Configuration
view_layout:
position: sidebar
## [ Configuration Guide ] ##
type: markdown
content: >
**State Code & Source**
- Select Source to your preference.<br />(eSolat/AzanPro/Local/Official HA
Islamic Prayer Time)
- Please enter your state codes based on
[here](https://www.e-solat.gov.my/index.php?siteId=24&pageId=50).
- **For Local source**, please press Refresh at the manual control section for
the first time or when changing the state code.
<ha-alert>**Islamic Prayer Times** is visible only if it has been activated.
<br />Please add the integration from the Home Assistant Integrations menu if
required.</ha-alert>
**Azan Audio & Automation**
- Select your desired audio player <br />(recommended to use Speaker Group)
- Select your preferred Azan Automation (Google or Alexa).
- Default TTS will be used for Google while Alexa will be using audio files.
- **For Google**, you may specify multiple azan audio <br />(Mp3 files must be
stored in the media folder)
- **For Alexa**, you need to provide the external URL of your HA <br />(Please
ensure your HA is accessible via https).
- To use your own automation, please select **Custom**<br />(This will disable
both Google and Alexa default automation).
**Manual Control**
- Online Sensors: This will refresh eSolat and AzanPro sensors
- Local Sensors: This will download the latest eSolat data.
title: Configuration Guide
## [ Dashboard ] ##
type: markdown
content: >-
> Today is</b><br /><font size=7>{{ now().strftime('%I:%M %p') }}<br />{{
now().strftime('%A') }}</font><br /><font size=2>{{ now().strftime('%d %B %Y')
}} | {{states('sensor.hijridate')}}</font>
<ha-alert><b>Waktu Sekarang: </b>{{ states('sensor.waktu_sekarang') }} - {{
state_attr('sensor.waktu_sekarang', '12hours') }}{%if
state_attr('sensor.waktu_sekarang', 'next') == 'Imsak' %}{%else%}<br
/><b>Waktu Berikutnya:</b> {{ state_attr('sensor.waktu_sekarang', 'next') }}
<font size=1>({{ state_attr('sensor.waktu_sekarang', 'nextremaining') }}
remaining)</font>{%endif%}</ha-alert>
<table align=center width=100%><tr
align=center><th>Subuh</th><th>Zohor</th><th>Asar</th><th>Maghrib</th><th>Isyak</th></tr>
<tr align=center><td>{{ state_attr('sensor.solat_subuh', '12hours')
}}</td><td>{{ state_attr('sensor.solat_zohor', '12hours') }}</td><td>{{
state_attr('sensor.solat_asar', '12hours') }}</td><td>{{
state_attr('sensor.solat_maghrib', '12hours') }}</td><td>{{
state_attr('sensor.solat_isyak', '12hours') }}</td></tr></table>
## [ Prayer Time Panel ] ##
type: entities
entities:
- entity: sensor.waktu_sekarang
- type: divider
- entity: sensor.solat_subuh
format: time
- entity: sensor.solat_zohor
format: time
- entity: sensor.solat_asar
format: time
- entity: sensor.solat_maghrib
format: time
- entity: sensor.solat_isyak
format: time
- type: divider
- entity: sensor.waktu_imsak
- entity: sensor.waktu_syuruk
- entity: sensor.waktu_dhuha
- entity: sensor.waktu_isyraq
title: Islamic Prayer Time
icon: mdi:hands-pray
view_layout:
position: sidebar