Struggling with some basics

Absolutely loving the dashboards in appdaemon, even if getting my head round yaml is hard work!

I’m just starting with some basics at the moment.

clock:
  widget_type: clock
  date_style: "color: white"
  time_style: "color: white"

And

layout:
   - clock.clock(2x2)

But the date still comes out white and the time comes out the default purple colour.

It’s not being cached as it changes when I change the size to 3x3. I’ve restarted appdaemon and I’ve restarted HA. I’ve also tried in an ignognito window.

Am I missing something?

Scrub that. I copied and pasted from the documentation.

the layout bit should be:

layout:
    -  clock(2x2)

I too have started learning the basics. For my clock, I’ve pieced together a bunch of stuff that I have found on other dashboards and websites to get it to look the way I want. IMO, the documentation doesn’t give as much information as (I think) it should for a beginner. Lots more options available if you know about them. Here’s my clock code using a (2x1) layout:

clock:
    widget_style: "background: black"
    date_style: "color: white; font-size: 125%; font-weight: normal;"
    time_style: "color: white; font-size: 325%; font-weight: bold;"
    widget_type: clock
    time_format: "24hr"
    show_seconds: 1
    date_format_country: "en-US"
    date_format_options:
      weekday: "long"
      day: "numeric"
      month: "long"
      year: "numeric"
1 Like