Skip to content

Lolig4/DaVinci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ha Card:

type: custom:flex-table-card
entities:
  - entity: sensor.davinci_timetable
columns:
  - data: "1"
    name: Mo
    modify: |-
      if (x.current) {
        '<span style="color: green;">' + x.subject + '\n' + x.teacher + '\n' + x.room + '</span>'
      } else {[x.subject, x.teacher, x.room].join('\n')}
  - data: "2"
    name: Di
    modify: |-
      if (x.current) {
        '<span style="color: green;">' + x.subject + '\n' + x.teacher + '\n' + x.room + '</span>'
      } else {[x.subject, x.teacher, x.room].join('\n')}
  - data: "3"
    name: Mi
    modify: |-
      if (x.current) {
        '<span style="color: green;">' + x.subject + '\n' + x.teacher + '\n' + x.room + '</span>'
      } else {[x.subject, x.teacher, x.room].join('\n')}
  - data: "4"
    name: Do
    modify: |-
      if (x.current) {
        '<span style="color: green;">' + x.subject + '\n' + x.teacher + '\n' + x.room + '</span>'
      } else {[x.subject, x.teacher, x.room].join('\n')}
  - data: "5"
    name: Fr
    modify: |-
      if (x.current) {
        '<span style="color: green;">' + x.subject + '\n' + x.teacher + '\n' + x.room + '</span>'
      } else {[x.subject, x.teacher, x.room].join('\n')}
css:
  td: |
    white-space: pre;

Prerequisites:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages