move wink service definitions from lock to wink domain (#29137)

This commit is contained in:
Raman Gupta 2019-11-27 05:21:52 -05:00 committed by Pascal Vizeli
parent 5120181e0e
commit 9e882ef6b4
3 changed files with 70 additions and 70 deletions

View file

@ -62,66 +62,3 @@ unlock:
code:
description: An optional code to unlock the lock with.
example: 1234
wink_set_lock_vacation_mode:
description: Set vacation mode for all or specified locks. Disables all user codes.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
enabled:
description: enable or disable. true or false.
example: true
wink_set_lock_alarm_mode:
description: Set alarm mode for all or specified locks.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
mode:
description: One of tamper, activity, or forced_entry.
example: tamper
wink_set_lock_alarm_sensitivity:
description: Set alarm sensitivity for all or specified locks.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
sensitivity:
description: One of low, medium_low, medium, medium_high, high.
example: medium
wink_set_lock_alarm_state:
description: Set alarm state.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
enabled:
description: enable or disable. true or false.
example: true
wink_set_lock_beeper_state:
description: Set beeper state.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
enabled:
description: enable or disable. true or false.
example: true
wink_add_new_lock_key_code:
description: Add a new user key code.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
name:
description: name of the new key code.
example: Bob
code:
description: new key code, length must match length of other codes. Default length is 4.
example: 1234

View file

@ -18,12 +18,12 @@ from . import DOMAIN, WinkDevice
_LOGGER = logging.getLogger(__name__)
SERVICE_SET_VACATION_MODE = "wink_set_lock_vacation_mode"
SERVICE_SET_ALARM_MODE = "wink_set_lock_alarm_mode"
SERVICE_SET_ALARM_SENSITIVITY = "wink_set_lock_alarm_sensitivity"
SERVICE_SET_ALARM_STATE = "wink_set_lock_alarm_state"
SERVICE_SET_BEEPER_STATE = "wink_set_lock_beeper_state"
SERVICE_ADD_KEY = "wink_add_new_lock_key_code"
SERVICE_SET_VACATION_MODE = "set_lock_vacation_mode"
SERVICE_SET_ALARM_MODE = "set_lock_alarm_mode"
SERVICE_SET_ALARM_SENSITIVITY = "set_lock_alarm_sensitivity"
SERVICE_SET_ALARM_STATE = "set_lock_alarm_state"
SERVICE_SET_BEEPER_STATE = "set_lock_beeper_state"
SERVICE_ADD_KEY = "add_new_lock_key_code"
ATTR_ENABLED = "enabled"
ATTR_SENSITIVITY = "sensitivity"

View file

@ -151,4 +151,67 @@ set_nimbus_dial_state:
example: 250
labels:
description: The values shown on the dial labels ["Dial 1", "test"] the first value is what is shown by default the second value is shown when the nimbus is pressed
example: ["example", "test"]
example: ["example", "test"]
set_lock_vacation_mode:
description: Set vacation mode for all or specified locks. Disables all user codes.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
enabled:
description: enable or disable. true or false.
example: true
set_lock_alarm_mode:
description: Set alarm mode for all or specified locks.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
mode:
description: One of tamper, activity, or forced_entry.
example: tamper
set_lock_alarm_sensitivity:
description: Set alarm sensitivity for all or specified locks.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
sensitivity:
description: One of low, medium_low, medium, medium_high, high.
example: medium
set_lock_alarm_state:
description: Set alarm state.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
enabled:
description: enable or disable. true or false.
example: true
set_lock_beeper_state:
description: Set beeper state.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
enabled:
description: enable or disable. true or false.
example: true
add_new_lock_key_code:
description: Add a new user key code.
fields:
entity_id:
description: Name of lock to unlock.
example: 'lock.front_door'
name:
description: name of the new key code.
example: Bob
code:
description: new key code, length must match length of other codes. Default length is 4.
example: 1234