kvj / hass_nuki_ng

Better support for Nuki devices in the Home Assistant
MIT License
177 stars 34 forks source link

Ring as trigger possible? #38

Closed Friedi1970 closed 2 years ago

Friedi1970 commented 2 years ago

I’d say it is not really an issue but I wonder whether it might be possible to fetch the ringing of the door bell with the opener and use it as a trigger?

ZzetT commented 2 years ago

I think that's possible:

alias: Notification if bell rings
trigger:
  - platform: state
    entity_id: binary_sensor.nuki_opener_ring_action
    from: 'off'
    to: 'on'
condition: []
action:
  - device_id: A3F
    domain: mobile_app
    type: notify
    message: Doorbell rang
    title: Doorbell
mode: single
kvj commented 2 years ago

Thanks for sharing, I have no ring opener (un-)fortunately

alexdelprete commented 2 years ago

I’d say it is not really an issue but I wonder whether it might be possible to fetch the ringing of the door bell with the opener and use it as a trigger?

you have all the sensors and states available, it's just a matter of building your HA automation, the component provides everything needed, and even more...

Friedi1970 commented 2 years ago

you have all the sensors and states available, it's just a matter of building your HA automation, the component provides everything needed, and even more...

Yep, I know now. I have overseen the binary_sensor.nuki_opener_ring_action. Sorry for that!