diff --git a/src/data/logbook.ts b/src/data/logbook.ts index 3b16980169..d6b55d91c1 100644 --- a/src/data/logbook.ts +++ b/src/data/logbook.ts @@ -216,7 +216,6 @@ export const getLogbookMessage = ( case "cold": case "gas": case "heat": - case "colightld": case "moisture": case "motion": case "occupancy": @@ -246,9 +245,17 @@ export const getLogbookMessage = ( } case "cover": - return state === "open" - ? hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_opened`) - : hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_closed`); + switch (state) { + case "open": + return hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_opened`); + case "opening": + return hass.localize(`${LOGBOOK_LOCALIZE_PATH}.is_opening`); + case "closing": + return hass.localize(`${LOGBOOK_LOCALIZE_PATH}.is_closing`); + case "closed": + return hass.localize(`${LOGBOOK_LOCALIZE_PATH}.was_closed`); + } + break; case "lock": if (state === "unlocked") { diff --git a/src/translations/en.json b/src/translations/en.json index f2234c775e..0e7abc790f 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -311,6 +311,8 @@ "was_disconnected": "was disconnected", "was_opened": "was opened", "was_closed": "was closed", + "is_opening": "is opening", + "is_closing": "is closing", "was_unlocked": "was unlocked", "was_locked": "was locked", "was_plugged_in": "was plugged in",