This blueprint is based on 2 integrations:
- The “Home Assistant Dahua Integration” that can installed via HACS
- The “Another attempt to add a better support for Nuki devices to the Home Assistant”
The blueprint will create an automation, that allows you to open the door from within the DMSS app. Pushing on the lock icon in the DMSS app will fire an event that is captured by HA and then fires the automation created by the blueprint.
blueprint:
name: Dahua and Nuki - Open Door
description: Blueprint on opening the door from the Dahua DMSS app in combination with a Nuki Door Lock
domain: automation
input:
lock_device:
name: Nuki Lock Device
description: The Nuki Lock Device
selector:
device:
integration: nuki_ng
lock_entity:
name: Nuki Lock Entity
description: The Nuki Lock Entity
selector:
entity:
integration: nuki_ng
domain: lock
trigger:
- platform: event
event_type: dahua_event_received
event_data:
Action: Pulse
Code: AccessControl
Data:
Name: OpenDoor
action:
- device_id: !input lock_device
domain: lock
entity_id: !input lock_entity
type: open