a-p-z / datetime-card

A minimalistic card for Home Assistant Lovelace UI which shows how many days it has been between any input_datetime and today.
21 stars 1 forks source link

provide documentation #1

Closed cinghialino closed 2 years ago

cinghialino commented 2 years ago

there is no documentation with this repo.

cjsmns commented 2 years ago

I've tried a few different ways, and can't work out what how to set this up.

Documentation would be great.

a-p-z commented 2 years ago

First of all thanks for your feedback. What kind of documentation would you like to have?

The steps to install the card are in the readme.

To configure it there is the card configuration interface: image

On it, you have to set

cjsmns commented 2 years ago

Interesting... It says No visual editor available for type 'custom:datetime-card'.

Looking at the screenshot you provided, I've managed to get one entity on there, but on the project page you have 3 entities. How did you get that?

This is what I have.

type: custom:datetime-card
entity:
  - input_datetime.christmas_day
max: 365
a-p-z commented 2 years ago

No visual editor? weird. I will try to reproduce and fix it for the moment use this example to create yours

type: custom:datetime-card
title: Chinese money
image: /local/plant_chinese_money.png
entities:
  - id: input_datetime.plant_chinese_money_w
    max: 9
  - id: input_datetime.plant_chinese_money_m
    max: 5
  - id: input_datetime.plant_chinese_money_f
    max: 17
a-p-z commented 2 years ago

I have written a few lines on how to configure the card. Please let me know if now it is clearer and I will close the issue

cinghialino commented 2 years ago

there is no visual editor for me as well

cjsmns commented 2 years ago

Thanks for the example. I've got it working now. The id: is what I was missing. Normally it's entity_id:.

Hopefully you can work out the visual editor issue.

gribber commented 2 years ago

No visual editor here either, gives this message instead:

Configuration errors detected:
Cannot set property setConfig of [object HTMLElement] which has only a getter
a-p-z commented 2 years ago

Please, go with the code editor until the visual editor is fixed. I opened a specific issue for that, follow it #2