before(prayer)Prepare the building
Climate could begin before a prayer, with different lead times by prayer and a staged startup across physical areas rather than switching everything at once.
visitor@sultaning:~/work$ open smart-mosque-v1
Before the platform, there was a working mosque. This first-generation system connected prayer time to climate, microphones, presence, screens, lighting, media and notifications — and ran those ideas against real daily operation.
Most smart-building systems understand clocks, rooms and devices. A mosque also has Athan, Iqama, prayer, Friday, Ramadan and changing occupancy. The first system explored what happens when those religious and operational rhythms become automation inputs.
before(prayer)Climate could begin before a prayer, with different lead times by prayer and a staged startup across physical areas rather than switching everything at once.
during(prayer)Microphone state near Iqama and presence around the mihrab became useful signals for understanding whether the planned schedule matched what was actually happening.
after(prayer)Post-prayer climate, display and notification behavior could change without someone manually operating every subsystem.
special(days)Friday, Ramadan, Qiyam and Eid introduced different timing and presentation needs that a fixed daily automation model could not ignore.
A typical flow was not a single “turn on AC” command. It combined prayer timestamps, staged device actions, microphone evidence, screen behavior and post-prayer transitions.
The installation mixed Wi‑Fi climate, Zigbee devices, MQTT infrastructure, IR, presence, media and kiosk hardware. Home Assistant made those different physical worlds usable together.
The Iqama display reacted to the actual prayer window. It produced human Arabic countdown language, shifted to second-level urgency near Iqama, and could change from a planned countdown to “the prayer has begun” when microphone evidence appeared.
Running real devices through daily prayers revealed which ideas were genuinely valuable — and where a Home Assistant-centered architecture would eventually become difficult to scale.
Friday, Ramadan, Iqama, prayer stages and special nights are not just collections of timers. They need consistent semantics shared across devices and screens.
Schedules are plans; microphones, presence and actual device state tell you what is happening. Good automation needs both.
When prayer policy and physical entity IDs live too close together, replacing devices becomes expensive. That lesson directly shaped the next architecture.
Ramadan, Qiyam and Eid were not edge cases. They proved the system needed an explicit event/calendar model rather than endless one-off branches.
Kiosk navigation and prayer-page logic worked, but the screen deserved to become a dedicated presentation client consuming one mosque truth.
The most important output was not the YAML. It was a tested requirements map for what a mosque platform actually needs.
The work crossed software and hardware: discovering the operational problem, connecting different device ecosystems, writing prayer-aware logic, testing it against a live mosque, shaping screen behavior and turning repeated friction into the architecture requirements for the next generation.