#howto #ideas #tutorial
Learn how to display time and date using ESP iot dev boards, ESPHome and Home Assistant.
Invitation Link to join my Exclusive membership:
/ @kian.smarthome
Section 1:
on_boot:
if:
condition:
time.has_time:
then:
logger.log: Time has been set and is valid!
Section 2:
time:
platform: homeassistant
id: homeassistant_time
timezone: Europe/Amsterdam
font:
file: "arial.ttf"
id: arialfont
size: 15
i2c:
sda: GPIO4
scl: GPIO15
display:
platform: ssd1306_i2c
model: "SSD1306 128x64"
reset_pin: GPIO16
address: 0x3C
lambda: |-
it.print(10, 0, id(arialfont), "Kian.smarthome");
it.strftime(3, 30, id(arialfont), "Date :%Y-%b-%d", id(homeassistant_time).now());
it.strftime(3, 50, id(arialfont), "Time:%H:%M %a", id(homeassistant_time).now())
Time zone table:
https://en.wikipedia.org/wiki/List_of...
Time and Date format table:
https://esphome.io/components/time.ht...
Basic of using display with ESPHome:
• Use display with ESPHome in Home Assistant
Setup ESP iot dev_board with ESPHome:
• Getting Started with DIY Smart Home Projec...
Buy me a Coffee:
https://www.buymeacoffee.com/kian.sma...
#homemade #smarthome #homeautomation #automation #iot #wifi #smartlighting #smartthermostat #smartdevices #smartgadgets #homeassistant #display