Skip to content

🕋 Malaysia Prayer time based on GPS Location using AppDaemon. Give support by pressing the ⭐ button. Jazakallahu khair

License

Notifications You must be signed in to change notification settings

zubir2k/HomeAssistantEsolatGPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esolatgps_banner
hacs_badge Donate

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)

Requirements

  • 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

logo

image

Open your Home Assistant instance and show the Supervisor add-on store.

Installation

  1. Download the files and copy to config\appdaemon\apps -- be sure that AppDaemon has been installed.

image

  1. 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
  1. Within few seconds, the sensors will be populated sensor.esolat_ based on the person with GPS coordinates.

image

Example Use Case

  • 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.
    If user doesnt have gps location, it will show Home prayer time instead:

image

Look into the sample folder for instructions.

Special Thanks

You may also try Adzan Automation