Open lock with push notification

Hi,

I want to open my lock with a notification. I tried this, but it doesn’t work. I receive the notification, but it doesn’t open my lock when I press the button to open it. Can anyone help me?

service: notify.mobile_app_my_phone
metadata: {}
data:
  message: Wil je de deur openen?🚪
  title: 🔔 Ding-dong 🔔
  data:
    actions:
      - action: lock.open
        title: Open voordeur
        service: lock.open
        target:
          entity_id: lock.loqed

Where did you get the information, that it would work this way? I’m quite sure it’s not that easy.

You need to send some data together with the notification and afterwards have an automation, that reacts on the event of the button press.

Maybe one of these blueprints help?

According to this, lock.open only works with certain locks. I would try with the lock.unlock service call instead.

Thanks! This worked!

I found another topic about something similar and used the examples from that page, but I can’t find the topic anymore. But the iOS blueprint works even better. Thanks a lot!

1 Like

That didn’t work unfortunately, but I already found a solution. Thanks for your reaction!

1 Like