Skip to content

Multiple Timers #156

@khobbits

Description

@khobbits

I'm using the Baby Buddy official android app, which provides buttons to start multiple concurrent timers.

The timers have specific names such as 'Feeding-BBapp:1', 'Sleep-BBapp:2', 'Pumping-BBapp:4'.

This allows for a parent to be pumping at the same time the baby is either asleep, or feeding.

I was hoping to collect/display this data in home assistant, and mimic the functionality, of being able to start 'feeding/pumping/sleep' timers, and I can do this:

          - action: babybuddy.start_timer
            target:
              entity_id: switch.baby_timer
            data:
              name: HA-Sleep-BBapp:2

This works well, and the timer shows up in the android app correctly, as a timer of the correct type.

However, when calling the service, to add a feeding/pump/sleep, it only (seems) to support the idea of "the currently active timer".

So it will pick the last started timer, rather than the correct timer for the activity.

Edit:
Looking at HA, I'm not sure how multiple timers would be presented as entities, without it becoming more convoluted, which is why I wonder if the easiest approach would be to support timer types, rather than unlimited timers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions