jcgoette / baby_buddy_homeassistant

This custom integration provides sensors for Baby Buddy API endpoints.
MIT License
64 stars 30 forks source link

Add Sensor for Most Recent Timer #37

Closed torrancew closed 3 years ago

torrancew commented 3 years ago

I'm building a Lovelace UI for BabyBuddy, and would like to be able to display the elapsed duration of a running timer, eg to be able to quickly tell how long a nap or feeding has been going on from within HA.

engrbm87 commented 3 years ago

Hello @torrancew , I also display the elapsed duration for a running timer in my lovelace UI. Simply use the timer switch attribute 'Duration'. below is an example:

  - type: attribute
    entity: switch.baby_last_timer # replace with your switch name
    attribute: duration