Skip to content

Instantly share code, notes, and snippets.

@baierjan
Last active December 5, 2025 10:27
Show Gist options
  • Select an option

  • Save baierjan/773e20a5061780f0a27ed86619dbffba to your computer and use it in GitHub Desktop.

Select an option

Save baierjan/773e20a5061780f0a27ed86619dbffba to your computer and use it in GitHub Desktop.
ESPClock: An open-source smart desk clock with Home Assistant integration
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
esphome:
name: esp-430930
friendly_name: ESPClock
comment: ESP based smart digital clock
esp32:
board: esp32dev
framework:
type: esp-idf
logger:
baud_rate: 0
packages:
- !include common/connection.yaml
i2c:
- sda: GPIO21
scl: GPIO22
i2s_audio:
- i2s_bclk_pin: GPIO27
i2s_lrclk_pin: GPIO25
uart:
- rx_pin: GPIO3
tx_pin: GPIO1
baud_rate: 9600
sensor:
- platform: dht
model: DHT22
pin: GPIO14
temperature:
name: Temperature
accuracy_decimals: 1
humidity:
name: Humidity
accuracy_decimals: 0
update_interval: 60s
- platform: veml7700
- platform: mhz19
binary_sensor:
- platform: gpio
id: am312
pin: GPIO34
device_class: motion
- platform: gpio
id: switch_1
pin: GPIO13
- platform: gpio
id: switch_2
pin: GPIO35
microphone:
- platform: i2s_audio
adc_type: external
i2s_din_pin: GPIO26
display:
- platform: tm1637
clk_pin: GPIO32
dio_pin: GPIO33
output:
- platform: gpio
id: red_output
pin: GPIO17
- platform: gpio
id: yellow_output
pin: GPIO16
- platform: gpio
id: green_output
pin: GPIO4
light:
- platform: binary
output: red_output
id: red_light
- platform: binary
output: yellow_output
id: yellow_light
- platform: binary
output: green_output
id: green_light

Comments are disabled for this gist.