Skip to content

Formatting attributes? #161

@proffalken

Description

@proffalken

Hey folks,

I'm hoping I can somehow format the attribute of one of my sensors into something like 3 hours from now or 5pm tonight

My config is as follows:

type: custom:banner-card
heading:
  - mdi:home
  - Home
entities:
  - entity: device_tracker.me
    name: Me
  - entity: device_tracker.my_wife
    name: My Wife
  - entity: device_tracker.kid_no_1
    name: Kid No. 1
  - entity: device_tracker.kid_no_2
    name: Kid No. 2
    value: School
  - type: custom:simple-weather-card
    entity: weather.home_2
  - entity: binary_sensor.octopus_energy_saving_session
    attribute: next_joined_event_start
    name: Next Energy Saving Session
    size: 4
row_size: 4

Any ideas what I can use here?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions