A Home Assistant custom integration that provides accurate world time from clock.bh - the official Bahrain NTP Time Server. Includes a beautiful animated Lovelace card matching the clock.bh design.
- Animated Lovelace Card - Beautiful SVG clock matching clock.bh design
- Any Timezone Support - Select from 400+ timezones worldwide
- Multiple Instances - Add multiple clocks for different timezones
- Synced with atomic clocks via clock.bh NTP server
- Bahrain flag colors (Red & Gold)
- Day/night indicator
- Light/dark theme support
The integration includes a custom animated clock card with smooth second-hand movement, matching the clock.bh logo design.
The card features:
- Smooth animated clock hands (hour, minute, second)
- Bahrain-inspired colors (#CE1126 red, #C9A66B gold)
- Digital time display
- Date display
- Day/night indicator
- UTC offset badge
- Light/dark theme auto-detection
type: custom:clock-bh-card
timezone: Asia/Bahrain
title: Bahrain
show_date: true
show_seconds: true
theme: auto # 'light', 'dark', or 'auto'
size: medium # 'small', 'medium', or 'large'| Option | Type | Default | Description |
|---|---|---|---|
timezone |
string | Asia/Bahrain |
IANA timezone identifier |
title |
string | Auto from timezone | Custom title for the clock |
show_date |
boolean | true |
Show current date |
show_seconds |
boolean | true |
Show second hand and seconds in digital display |
theme |
string | auto |
Color theme: light, dark, or auto |
size |
string | medium |
Card size: small, medium, or large |
type: horizontal-stack
cards:
- type: custom:clock-bh-card
timezone: America/New_York
title: New York
size: small
- type: custom:clock-bh-card
timezone: Europe/London
title: London
size: small
- type: custom:clock-bh-card
timezone: Asia/Bahrain
title: Bahrain
size: small
- type: custom:clock-bh-card
timezone: Asia/Tokyo
title: Tokyo
size: small- Open HACS in Home Assistant
- Go to "Integrations"
- Click the "+" button
- Search for "Clock.bh"
- Click "Download"
- Restart Home Assistant
- Download the
custom_components/clock_bhfolder - Copy it to your
config/custom_components/directory - Restart Home Assistant
- Add the card resource manually if needed:
- Go to Settings > Dashboards > Resources
- Add
/clock_bh/clock-bh-card.jsas JavaScript Module
- Go to Settings > Devices & Services
- Click + Add Integration
- Search for "Clock.bh"
- Select your desired timezone from the dropdown
- Click Submit
You can add multiple instances for different timezones!
clock.bh is a free, public NTP (Network Time Protocol) server for the Kingdom of Bahrain, offering accurate time synchronization for servers, computers, and IoT devices in the Middle East region.
- clock.bh - Bahrain NTP Time Server
- Report Issues
MIT License - see LICENSE file for details.
Powered by clock.bh - Bahrain NTP Time Server