Open ManuelLR opened 3 years ago
Right now the Google Home
integration is broken with the 2021.4. My focus is there right now as it was me who implemented the delete services. Some one earlier today asked the same problem and i will need to rewrite the card to add these new features. See #16. When the integration works again (Hopefully in the next couple of days), I will rewrite this card. 😄
For your information, I have the integration working for first time in 2021.4 , really strange.
(For reference: https://github.com/leikoilja/ha-google-home/issues/90 )
@ManuelLR Please see leikoilja/ha-google-home#165. We are not 100% sure why some of us are having the problem. 🤔
It would be nice to also be able to add timer/alarm.
@Leatherface75 This is unfortunately not possible ☹️ There is no api endpoint which allows us to do this.
It is possible now:
service: google_home.delete_timer
data:
entity_id: sensor.kitchen_timers
timer_id: timer/47dc1fa0-5ec0-2cc7-9ead-a94b85e22769
Issue is getting that timer_id out of the card, which means this functionality will have to go in the card.
Is your feature request related to a problem? Please describe. I was looking for a convenient way to delete alarms/timers from google home integration but didn't see a simple option. I think it would be interesting to add it here.
Describe the solution you'd like I think the ideal would be to be able to click on the alarms and get a form to confirm the deletion. If the user confirms, a call would be made to the google home service indicating the entity_id and timer_id.
Perhaps it would be convenient to have an option to disable this operation.
Describe alternatives you've considered To half solve it, I had to create a script to which the entity_id is passed as a parameter. This is because in lovelace it is not possible to use templates to extract the timer identifier. Also, with this solution the first timer/alarm is deleted when it doesn't always have to be that way but I ran out of imagination.
Additionally, this solution doesn't look too pretty.