A gentle light before Subuh, a reminder when the time comes in, help waking for sahur. Here is what your smart home can do, and where the times must come from.
📍 We serve KL, Selangor & Putrajaya.

Google Home can play an azan or switch on lights at a time you set, but it has no prayer-time starter of its own, so a plain routine will drift as the times move through the year. Take the times from JAKIM's e-Solat for your zone and keep the routines up to date, or use a local hub that calculates the times and check it against e-Solat. This page covers the technology only; for religious questions, ask your local religious authority. For the wider smart home, see the smart home hub.
Many Muslim households want three simple things from a smart home: a reminder when the time for prayer comes in, a gentle light before Subuh, and help waking for sahur in Ramadan. A smart speaker and a few smart lights can do all three. What they cannot do by themselves is know the prayer times.
We went through the starters on Google's routines help page. The ones it lists include a voice command, a time on the days you choose, sunrise or sunset, an alarm being dismissed, and another device doing something, and none of them is tied to prayer times. Everything below works around that gap.
The reference for Malaysia is JAKIM's e-Solat portal. It shows the day's times by zone, and the zones are set state by state; Kuala Lumpur and Putrajaya, for example, share one. It lists Imsak, Subuh, Syuruk, Duha, Zohor, Asar, Maghrib and Isyak, covers Peninsular Malaysia, Sabah and Sarawak, and links to the mySolat app for Android.
Two practical points follow. Pick your own zone, not the nearest big city's, before you copy any time into a routine. And the times change from day to day, so any routine set to a fixed clock time needs looking at again as the weeks pass.
| Starter in Google Home | How it fits prayer times | Watch for |
|---|---|---|
| A time on chosen days | Closest fit: one routine per prayer | Fixed time; you must update it as times move |
| Sunrise or sunset | Tempting for Subuh or Maghrib | The app's sunset is not taken from e-Solat and may not match Maghrib |
| Voice command | Useful for a manual “prayer time” scene | Someone has to say it |
| Alarm dismissed | Good for a sahur routine after your phone alarm | Personal routine, tied to one person |
| A device doing something | A light or button can trigger a scene | Needs a compatible device |
Google also says routines are only available in select regions and languages, and that if you cannot create or run them you may need to change your phone's language to one supported in your region. Setting up the app and home is covered in the Google Home setup guide.
| Approach | How it works | Suits | Effort |
|---|---|---|---|
| Fixed-time routines | One routine per prayer at a time copied from e-Solat | Households happy to update the times regularly | Low to start, ongoing upkeep |
| Phone app reminders | A prayer-time app on the phone gives the alert; the home handles lights | Anyone who already relies on a phone app | Low |
| Local hub with prayer-time sensors | A hub calculates the times daily and fires the routines | Households that want it to update itself | Higher set-up, little upkeep |
Many homes combine them: a phone app for the alert itself, and the smart home for the lights and the speaker in the family area.
This is the simplest route and works on any Google speaker. Create a household routine for each prayer you want, set the time from e-Solat for your zone, choose the days, and add the actions: an announcement or audio on a chosen speaker, lights on, perhaps the television paused by a separate scene. Google's page notes that a routine which starts by itself and plays audio needs you to pick the speaker it plays on.
The weakness is upkeep. Because the times move, set a reminder to check the routines against e-Solat regularly and adjust them. Avoid using the sunset starter as a stand-in for Maghrib; the app's sunset is Google's own calculation, not taken from e-Solat, so it may not match the Maghrib time for your zone.
For a set-up that updates itself, a local hub can calculate the times every day. Home Assistant has an Islamic Prayer Times integration that creates sensors for Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha and midnight, which automations can then follow.
Read its settings carefully. Its documentation lists the calculation methods it supports, including the Muslim World League and Majlis Ugama Islam Singapura, but JAKIM's method is not on the list, and the default is the Islamic Society of North America. Its own notes say its sunrise is a calculated field that may differ from the astronomical one. So before relying on it, compare its times with e-Solat for your zone over several days. If they differ, follow e-Solat, and ask your local religious authority if you are unsure which times to use.
Setting up the hub itself is covered in the Home Assistant setup guide, and the local control guide explains why a local hub keeps routines running when the internet drops.
Light is often the most welcome part. A soft light in the bedroom and along the route to the bathroom for wudhu, a little before Subuh, wakes people more gently than an alarm. During Ramadan, a kitchen light that comes on for sahur saves fumbling in the dark; e-Solat lists Imsak alongside Subuh, which families often use as their reference for the sahur routine. When Ramadan ends, Google lets you pause a routine instead of deleting it, ready for next year.
Smart bulbs in bedside or hallway lamps are the easiest start. A motion sensor that lights the corridor at low brightness only at night is another; the indoor motion sensor lighting guide covers placement. For ceiling lights on the wall switch, a smart switch or dimmer does the job. For smart switches and anything wired into the mains, we supply the devices and set up the app, and the switch or wiring work is done by an electrical contractor registered with Suruhanjaya Tenaga that we coordinate.
A routine can play audio on the speaker you choose, or make an announcement. Which recording you use, and whether a full azan or a short reminder suits your home, is a family choice; e-Solat itself offers an azan you can play on its portal. A few practical habits help:
If the household speaks Malay, check what your chosen assistant understands before building voice commands around it; the Google, Alexa or Siri guide sets out what each maker publishes.
Google states that automations are for convenience only and can depend on working internet, Wi-Fi and the services of every maker involved. Treat a prayer-time routine as a helpful extra, not the only reminder. Keep a phone app or a dedicated prayer clock as the backup, and check the routines after any change to your Wi-Fi, speaker or app.
We set up the speaker, the routines and the lights: we create the prayer-time routines from the times you choose, pair smart bulbs, install motion sensors for the night path, and show the family how to update or pause each routine. We do the smart device, app and low-voltage side of the job. We do not decide prayer times; the routines follow the official times you give us.
WhatsApp us your job details for a quote — we reply within the hour. A site visit is free. We serve KL, Selangor & Putrajaya.
💬 WhatsApp for a quoteTell us what you need — we reply within the hour.