This is an AppDaemon application used in Home Assistant that will create a Prayer Time sensor based on Person's GPS coordinates. The GPS-based prayer time API is provided by Malaysia Prayer Time.
Prayer time information are made as sensor attributes with the following format:
- 12 hours (e.g. 6:01 AM)
- 24 hours (e.g. 06:01:00)
- Datetime UTC (e.g. 2023-07-29T22:01:00+00:00)
- Home Assistant 2021.x and above
- AppDaemon Add-On installed
- Device tracker with GPS coordinates assigned to person entity
(usually from companion app) - Highly Recommended: Home Assistant Adzan integration
- Download the files and copy to
config\appdaemon\apps
-- be sure that AppDaemon has been installed.
- If you already have other AppDaemon apps loaded, open the
apps.yaml
and add the following lines and save.
esolat_gps:
module: esolat_gps
class: EsolatGPS
- Within few seconds, the sensors will be populated
sensor.esolat_
based on the person with GPS coordinates.
- Send prayer time alert via Push Notification whenever the person is not at Home (otherwise, alert via Adzan Automation)
- Make a condition that will automatically show the prayer time whenever the person is not at Home
- You may use conditional card to switch entity card showing local and gps based prayer time -- more info here
(sample here) - Below is an example of Markdown card and the codes that will show prayer time based on logged in
user
.
Ifuser
doesnt have gps location, it will show Home prayer time instead:
Look into the sample folder for instructions.
- HomeAssistantMalaysia
- Saudara Noorzaini Ilhami for his MPT API
- Prayer times data by JAKIM. Geolocation data by Google
You may also try Adzan Automation