Implement lock to yale_smart_alarm (#21089)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
G Johansson 2022-01-12 00:27:04 +01:00 committed by GitHub
parent fc00454ce4
commit 8a2aa2aaac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ title: Yale Smart Living
description: Instructions on how to integrate Yale Smart Alarms into Home Assistant. description: Instructions on how to integrate Yale Smart Alarms into Home Assistant.
ha_category: ha_category:
- Alarm - Alarm
- Lock
ha_release: 0.78 ha_release: 0.78
ha_iot_class: Cloud Polling ha_iot_class: Cloud Polling
ha_config_flow: true ha_config_flow: true
@ -11,38 +12,27 @@ ha_codeowners:
ha_domain: yale_smart_alarm ha_domain: yale_smart_alarm
ha_platforms: ha_platforms:
- alarm_control_panel - alarm_control_panel
- lock
--- ---
The Yale Smart Living integration provides connectivity with the Yale Smart Alarm systems and Smart Hub through Yale's API. 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`. There is currently support for the following device types within Home Assistant:
Currently only one alarm is supported.
- Alarm
- Lock
{% include integrations/config_flow.md %} {% include integrations/config_flow.md %}
## Automation example ## Alarm Control Panel
```yaml Services provided are `armed_away`, `armed_home`, and `disarmed`.
automation:
- alias: "Alarm: Disarmed Daytime" No code is required to operate the alarm.
trigger:
platform: state
entity_id: alarm_control_panel.yale_smart_alarm ## Lock
to: "disarmed"
condition: The lock platform requires a code for unlocking but no code for locking.
condition: sun
before: sunset The integration can be configured to provide a default code that is used if no code is supplied and the number of digits required.
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
```