I was asked to share the code on my big clean clock. (somehow that sounded wrong)
Here it goes.
First make sure to create a few template sensors in your configuration.yaml.
- platform: template
sensors:
week_day:
value_template: "{{ now().strftime('%A')}}"
current_date:
value_template: "{{ now().strftime('%d')}} {{ now().strftime('%B')}} {{ now().strftime('%Y')}}"
Then you create a Picture Element in Lovelace
elements:
- entity: sensor.time
style:
font-family: ANY COOL COLOR
color: '#EAC117'
# WAIT WHAT? OPACITY? COOL!
filter: opacity(60%)
font-family: ANY COOL FONT
font-size: 1000%
left: 50%
top: 56%
pointer-events: none
# USE THIS TO BRING THE ITEM FRONT OR MOVE IT BACK IN LAYERS.
z-index: 0
type: state-label
- entity: sensor.week_day
style:
filter: opacity(30%)
font-family: ANY FONT YOU LIKE AND UPLOADED IN RESOURCES
font-size: 500%
left: 43%
pointer-events: none
text-shadow: 0px 0px 80px black
top: 20%
z-index: 1
type: state-label
- entity: sensor.current_date
style:
filter: opacity(100%)
font-family: ANY FONT YOU LIKE AND UPLOADED IN RESOURCES
font-size: 280%
left: 50%
top: 33%
pointer-events: none
z-index: 2
type: state-label
image: '/local/ANY_PICTURE_YOU_WANT_WITH_TRANSPARANCY.svg'
type: picture-elements
And to top it all off add this to your automation
automation:
- alias: 'update template date sensors'
trigger:
- platform: time
at: '00:01:00'
action:
- service: homeassistant.update_entity
entity_id: sensor.current_date, sensor.week_day
This ensures your template sensor is updated every night one minute after twelve.
Aaaaaaand your done. That’s it.
Now you can also go and do stuff like add Temperature etc. etc. and shift that around with left and top.
- entity: sensor.temperature_your_location
style:
color: '#FFFFFF'
font-family: SOME COOL FONT
font-size: 17px
left: 87%
pointer-events: none
text-shadow: 0px 0px 40px black
top: 11%
type: state-label
- conditions:
- entity: weather.your_location
state: sunny
elements:
- image: >-
http://Local_IP:8123/local/lovelace/images/assets/weather/sunny.svg
style:
filter: opacity(100%)
left: 76%
pointer-events: none
text-shadow: 0px 0px 40px black
top: 12%
width: 9%
z-index: 0
type: image
type: conditional
- image: >-
http://local_IP/local/lovelace/images/assets/weather/thermometer.svg
style:
left: 95%
pointer-events: none
top: 18%
width: 4%
type: image
This you would simply add.
You can play around with things like Text Shadow, backgrounds and what not. Limit is your imagination really.
Here is what I have been playing around with.
You can also go big and do panel mode
elements:
- entity: sensor.time
style:
color: '#EAC117'
filter: opacity(60%)
font-family: SOME COOL FONT
font-size: 24vw
left: 50%
#THIS IS WHERE YOU PLAY WITH TEXT SHADOW
text-shadow: 0px 0px 100px black
pointer-events: none
top: 50%
z-index: 0
type: state-label
- entity: sensor.current_date
style:
filter: opacity(100%)
font-family: SOME COOL FONT
font-size: 6vw
left: 50%
#THIS IS WHERE YOU PLAY WITH TEXT SHADOW
text-shadow: 0px 0px 0px black
pointer-events: none
top: 32%
z-index: 2
type: state-label
- entity: sensor.week_day
style:
filter: opacity(30%)
font-family: SOME COOL FONT
font-size: 12.5vw
left: 46%
pointer-events: none
#THIS IS WHERE YOU PLAY WITH TEXT SHADOW
text-shadow: 0px 0px 80px black
top: 22%
z-index: 1
type: state-label
image: 'ANY TRANSPARENT BACKGROUND IMAGE'
type: picture-elements