Datestamp from a click

I’ve been told that this is going to be hard to do in HA, but i’ll try yo reach out in here anyway.
I’m controlling a bunch of aquariums from HA, and i would like to create a dropdown where i can select: Waterchange, Firtilizer, Quarantine + the possibility to add more.
When a subject is chosen, all that happens is that the text of the subject + todays date to another card:


This could be done with three small buttons as well, if it’s easier to do.

Can anyone guide me to how to do this?

Who told you such nonsens?!

description: ""
mode: single
triggers:
  - trigger: state
    entity_id:
      - input_select.aquarium_actions
conditions: []
actions:
  - action: input_text.set_value
    metadata: {}
    data:
      value: "{{ trigger.to_state.state }} - {{ now().date() }}"
    target:
      entity_id: input_text.aquarium

Yeah well… that seems pretty simple … -ish.

This is a single card? Both containing the dropdown and the result-text with datestamp?

Maybe i should have told, that my experience in Home Assistant still is rather defective. I’m thrilled that there’s an easy solution, but i would really appreciate it if you could be a bit more specific on how to implement the solution. Thank you SO much.

That is an automation.
It could be done in a card too, but I find it easier if automations are in automations.
So create the two helpers, the select with the actions and the text.
When you select something then it triggers.

Thank you. I will try it out.

Ok. I succeeded in creating the automation (i think), but i can’t figure out how to transfer the data from the select and automation, and in to another card.

By the way - did i mention that my intention is to have a log with dates for various maintenance tasks in the aquarium? So this automation will, in time, show a list of dates and the type of maintenance done on that day.

No, that kind of storage is not suitable in Home Assistant.
I would recommend google sheets integration in that case.
So you can have the input text with the last time, and in sheets you have them all.

Just add the input text on the dashboard.

Thank you so much @Hellis81
The Google Sheet integration did the job, combined with the yaml you posted earlier. I am very greatful for your help.

Now i’ve been googlin’ how to get the data back into a card on the dashboard. There’s a lot of guides out there on how to append data to Google Sheet, but strangely i can’t seem to find any on how to get it back.

Any ideas?

You mean from sheets to HA?
I don’t think that is possible yet.
But do you really want a long list of of them?
Isn’t the last one the most relevant?

Yes. I meant from Sheets to HA.
Today we are writing the update on the glass of the aquarium with a sharpie :sweat_smile:

We have a tablet with a dashboard on each tank with temperature measurement and what not, and I just figured it would be a lot easier to push a button to make a date stamp.

The list could potentially get long yes, but it’s mostly a matter of remembering last time it was done and show it on the screen.

Maybe write it to a file.
No experience with that so can’t help