diff --git a/src/common/entity/get_states.ts b/src/common/entity/get_states.ts index 465d9c0c76cc..24e9fa4a7eef 100644 --- a/src/common/entity/get_states.ts +++ b/src/common/entity/get_states.ts @@ -28,7 +28,15 @@ export const FIXED_DOMAIN_STATES = { input_button: [], lawn_mower: ["error", "paused", "mowing", "docked"], light: ["on", "off"], - lock: ["jammed", "locked", "locking", "unlocked", "unlocking"], + lock: [ + "jammed", + "locked", + "locking", + "unlocked", + "unlocking", + "opening", + "open", + ], media_player: [ "off", "on", diff --git a/src/data/logbook.ts b/src/data/logbook.ts index 703ca6969dd9..24c3cba6a164 100644 --- a/src/data/logbook.ts +++ b/src/data/logbook.ts @@ -358,6 +358,10 @@ export const localizeStateMessage = ( return localize(`${LOGBOOK_LOCALIZE_PATH}.is_locking`); case "unlocking": return localize(`${LOGBOOK_LOCALIZE_PATH}.is_unlocking`); + case "opening": + return localize(`${LOGBOOK_LOCALIZE_PATH}.is_opening`); + case "open": + return localize(`${LOGBOOK_LOCALIZE_PATH}.is_opened`); case "locked": return localize(`${LOGBOOK_LOCALIZE_PATH}.was_locked`); case "jammed": diff --git a/src/fake_data/entity_component_icons.ts b/src/fake_data/entity_component_icons.ts index 595c01cd0f2a..90b580f977e7 100644 --- a/src/fake_data/entity_component_icons.ts +++ b/src/fake_data/entity_component_icons.ts @@ -231,6 +231,8 @@ export const ENTITY_COMPONENT_ICONS: Record = { locking: "mdi:lock-clock", unlocked: "mdi:lock-open", unlocking: "mdi:lock-clock", + opening: "mdi:lock-clock", + open: "mdi:lock-open-variant", }, }, }, diff --git a/src/translations/en.json b/src/translations/en.json index 18bb22292f01..eab739b2f0e1 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -445,6 +445,7 @@ "was_opened": "was opened", "was_closed": "was closed", "is_opening": "is opening", + "is_opened": "is opened", "is_closing": "is closing", "was_unlocked": "was unlocked", "was_locked": "was locked",