hi sparta300
sure here is the code of the automation,
you can change the automation to YAML code view (the three dots on top-right corner).
it’s pretty simple, if the vibration sensor notices a vibration it will open the opener.
you can also add features like checking the home-zone etc. but then you have to setup home assistant on you mobile device and detectin and so on. you can find a lot of videos about this topic.
with this automation it will open the door everytime
notice: everything in UPPERCASE in the code, you have to replace it with your opener and vibration device ID and ENTITY_ID
and please make sure you have installed “HACS” on home assistant.
then you have to use the integration “Nuki Lock” in HACS and not the integration of home assistant.
so first make HACS work on home assistant then install the “Nuki Lock” integration
here you can find some more infos:
when the integration part is done and you can open your smartlock and opener through home assistant, you can then do the automation.
here is also a link to the community post:
this is the code of the automation:
alias: "Vibration Sensor: Nuki Opener"
description: ""
trigger:
- type: vibration
platform: device
device_id: VIBRATION_DEVICE_ID
entity_id: VIBRATION_DEVICE_ENTITY_ID
domain: binary_sensor
condition: []
action:
- device_id: NUKI_OPENER_DEVICE_ID
domain: lock
entity_id: NUKI_OPENER_ENTITY_ID
type: open
mode: single