Wait_template and html5 notification action

Is it possible to wait for an html5 notification action in a wait_template?

My use case:

  • the sunshades are closed and the sun is not shining on our windows anymore
  • I want to send html5 notification to my phone with the question: ‘Sun is not on windows anymore. Shall I open them?’
  • If I press yes on the html5 notification, it opens them.

I know I can wait for state changes with the wait_template, but can I also wait for events? If so, can you give me a pointer to the documentation?

This require 2 automation

AUTOMATION 1
Sends notification

AUTOMATION 2
Listen for yes click then does action based on click

I will post examples later

1 Like