From 8a2aa2aaac6bc2f2782fa0a5d44179535d4eb61e Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 12 Jan 2022 00:27:04 +0100 Subject: [PATCH] Implement lock to yale_smart_alarm (#21089) Co-authored-by: Franck Nijhof --- .../_integrations/yale_smart_alarm.markdown | 44 +++++++------------ 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/source/_integrations/yale_smart_alarm.markdown b/source/_integrations/yale_smart_alarm.markdown index d0a174a0164..4d963d91395 100644 --- a/source/_integrations/yale_smart_alarm.markdown +++ b/source/_integrations/yale_smart_alarm.markdown @@ -3,6 +3,7 @@ title: Yale Smart Living description: Instructions on how to integrate Yale Smart Alarms into Home Assistant. ha_category: - Alarm + - Lock ha_release: 0.78 ha_iot_class: Cloud Polling ha_config_flow: true @@ -11,38 +12,27 @@ ha_codeowners: ha_domain: yale_smart_alarm ha_platforms: - alarm_control_panel + - lock --- The Yale Smart Living integration provides connectivity with the Yale Smart Alarm systems and Smart Hub through Yale's API. -This platform supports the following services: `alarm_arm_away`, `alarm_arm_home` and `alarm_disarm`. -Currently only one alarm is supported. +There is currently support for the following device types within Home Assistant: + +- Alarm +- Lock {% include integrations/config_flow.md %} -## Automation example +## Alarm Control Panel -```yaml -automation: - - alias: "Alarm: Disarmed Daytime" - trigger: - platform: state - entity_id: alarm_control_panel.yale_smart_alarm - to: "disarmed" - condition: - condition: sun - before: sunset - action: - service: scene.turn_on - target: - entity_id: scene.OnDisarmedDaytime - - alias: "Alarm: Armed Away" - trigger: - platform: state - entity_id: alarm_control_panel.yale_smart_alarm - to: "armed_away" - action: - service: scene.turn_on - target: - entity_id: scene.OnArmedAway -``` +Services provided are `armed_away`, `armed_home`, and `disarmed`. + +No code is required to operate the alarm. + + +## Lock + +The lock platform requires a code for unlocking but no code for locking. + +The integration can be configured to provide a default code that is used if no code is supplied and the number of digits required.