pathofleastresistor / activity-manager

A Home Assistant custom component to manage recurring activities.
MIT License
49 stars 3 forks source link

Additional Attributes #15

Open igorski88 opened 9 months ago

igorski88 commented 9 months ago

First and foremost, we deeply appreciate the dedication and effort you've invested in creating this for us.

Is there anyway you can add an additional attribute for notes or a description of the activity? This will help for my sons chore list. I tried to add the attribute manually via a script but after a given time (less than a min) the attribute disappears.

pathofleastresistor commented 9 months ago

Thanks! Can you expand more on what you mean by attributes?

igorski88 commented 9 months ago

Thanks! Can you expand more on what you mean by attributes?

The sensors attributes. Maybe add one that is called "Note:" or "Description:" image

I'm also willing to help make the enhancement via pull requests.

pathofleastresistor commented 9 months ago

Oh interesting! I hadn't considered this but admittedly I was trying to keep this simple.

What's your goal with this additional field? I'm wondering why not add it to the name field.

Open to the idea but it would make the card I have more complicated so am careful right now

igorski88 commented 9 months ago

The additional field can allow instructions for the activity as well as other functionality with automaton.

Use case 1: The activity is for a daily chore for my son to feed the dog. The additional field would have instructions on how may scoops of kibble the dog needs.

Use Case 2: Two different activity's to exercise. The first reoccurring activity every 2 days will have the cardio instructions. The second reoccurring activity every 2 days (opposite of the first activity) will have strength exercise instructions.

Automation: I can write a script to update the "notes" field for the different use case. i.e: new exercises each week, as the puppy grows the food needs to increase in specified increments. etc.

I believe the use cases are endless for a "notes" field. My offer still stands to help

pathofleastresistor commented 9 months ago

Thanks - that's helpful and I can see this being useful. If you feel comfortable creating a PR for this, I'll definitely consider it.