https://github.com/zubir2k/homeassistantesolatgps
🕋 Malaysia Prayer time based on GPS Location using AppDaemon. Give support by pressing the ⭐ button. Jazakallahu khair
https://github.com/zubir2k/homeassistantesolatgps
appdaemon-apps gps-location hacs hacs-custom home-assistant mpt prayer-times python solat
Last synced: 21 days ago
JSON representation
🕋 Malaysia Prayer time based on GPS Location using AppDaemon. Give support by pressing the ⭐ button. Jazakallahu khair
- Host: GitHub
- URL: https://github.com/zubir2k/homeassistantesolatgps
- Owner: zubir2k
- License: mit
- Created: 2023-02-18T12:11:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T10:29:25.000Z (7 months ago)
- Last Synced: 2025-03-28T05:31:30.800Z (about 1 month ago)
- Topics: appdaemon-apps, gps-location, hacs, hacs-custom, home-assistant, mpt, prayer-times, python, solat
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml.old
- License: LICENSE
Awesome Lists containing this project
README
\
[](https://github.com/hacs/integration)
[](https://zubirco.de/buymecoffee)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](https://mpt.i906.my/)**.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)## Requirements
- Home Assistant 2021.x and above
- [AppDaemon](https://github.com/hassio-addons/addon-appdaemon) Add-On installed
- Device tracker with GPS coordinates assigned to person entity \
(usually from companion app)
- Highly Recommended: **[Home Assistant Adzan](https://github.com/zubir2k/HomeAssistantAdzan)** integration

[](https://my.home-assistant.io/redirect/supervisor_store/)
## Installation
1. Download the files and copy to `config\appdaemon\apps` -- be sure that AppDaemon has been installed.
2. If you already have other AppDaemon apps loaded, open the `apps.yaml` and add the following lines and save.
```yaml
esolat_gps:
module: esolat_gps
class: EsolatGPS
```3. Within few seconds, the sensors will be populated `sensor.esolat_` based on the person with GPS coordinates.

## Example Use Case
- Send prayer time alert via Push Notification whenever the person is not at Home (otherwise, alert via [Adzan Automation](https://github.com/zubir2k/HomeAssistantAdzan))
- 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](https://www.home-assistant.io/dashboards/conditional)\
(sample [here](https://github.com/zubir2k/HomeAssistantEsolatGPS/blob/main/sample-entitycard.yaml))
- Below is an example of Markdown card and the codes that will show prayer time based on logged in `user`. \
If `user` doesnt have gps location, it will show Home prayer time instead:
Look into the sample folder for instructions.
## Special Thanks
- [HomeAssistantMalaysia](https://www.facebook.com/groups/homeassistantmalaysia)
- Saudara [Noorzaini Ilhami](https://github.com/i906) for his [MPT API](https://github.com/MalaysiaPrayerTimes)
- Prayer times data by [JAKIM](https://www.e-solat.gov.my/). Geolocation data by [Google](https://www.google.com.my)*You may also try [Adzan Automation](https://github.com/zubir2k/HomeAssistantAdzan)*