1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00
Files
core/homeassistant/components/lock/strings.json
G Johansson 7862596ef3 Add open state to LockEntity (#111968)
* Add `open` state to LockEntity

* Add tests

* Fixes

* Fix tests

* strings and icons

* Adjust demo open lock

* Fix lock and tests

* fix import

* Fix strings

* mute ruff

* Change sequence

* Sequence2

* Group on states

* Fix ruff

* Fix tests

* Add more test cases

* Sorting
2024-05-08 20:42:22 +02:00

80 lines
2.1 KiB
JSON

{
"title": "Lock",
"device_automation": {
"action_type": {
"lock": "Lock {entity_name}",
"open": "Open {entity_name}",
"unlock": "Unlock {entity_name}"
},
"condition_type": {
"is_locked": "{entity_name} is locked",
"is_unlocked": "{entity_name} is unlocked",
"is_open": "{entity_name} is open"
},
"trigger_type": {
"locked": "{entity_name} locked",
"unlocked": "{entity_name} unlocked",
"open": "{entity_name} opened"
}
},
"entity_component": {
"_": {
"name": "[%key:component::lock::title%]",
"state": {
"jammed": "Jammed",
"locked": "[%key:common::state::locked%]",
"locking": "Locking",
"open": "[%key:common::state::open%]",
"opening": "Opening",
"unlocked": "[%key:common::state::unlocked%]",
"unlocking": "Unlocking"
},
"state_attributes": {
"code_format": {
"name": "[%key:component::alarm_control_panel::entity_component::_::state_attributes::code_format::name%]"
},
"changed_by": {
"name": "[%key:component::alarm_control_panel::entity_component::_::state_attributes::changed_by::name%]"
}
}
}
},
"services": {
"lock": {
"name": "Lock",
"description": "Locks a lock.",
"fields": {
"code": {
"name": "Code",
"description": "Code used to lock the lock."
}
}
},
"open": {
"name": "[%key:common::action::open%]",
"description": "Opens a lock.",
"fields": {
"code": {
"name": "[%key:component::lock::services::lock::fields::code::name%]",
"description": "Code used to open the lock."
}
}
},
"unlock": {
"name": "Unlock",
"description": "Unlocks a lock.",
"fields": {
"code": {
"name": "[%key:component::lock::services::lock::fields::code::name%]",
"description": "Code used to unlock the lock."
}
}
}
},
"exceptions": {
"add_default_code": {
"message": "The code for {entity_id} doesn't match pattern {code_format}."
}
}
}