diff --git a/common/src/main/java/io/homeassistant/companion/android/common/data/integration/Entity.kt b/common/src/main/java/io/homeassistant/companion/android/common/data/integration/Entity.kt index 2faaae47c53..1299c2bfcc6 100644 --- a/common/src/main/java/io/homeassistant/companion/android/common/data/integration/Entity.kt +++ b/common/src/main/java/io/homeassistant/companion/android/common/data/integration/Entity.kt @@ -636,9 +636,11 @@ fun Entity.friendlyState(context: Context, options: EntityRegistryOptions "armed_home" -> context.getString(commonR.string.state_armed_home) "armed_night" -> context.getString(commonR.string.state_armed_night) "armed_vacation" -> context.getString(commonR.string.state_armed_vacation) + "arming" -> context.getString(commonR.string.state_arming) "closed" -> context.getString(commonR.string.state_closed) "closing" -> context.getString(commonR.string.state_closing) "disarmed" -> context.getString(commonR.string.state_disarmed) + "disarming" -> context.getString(commonR.string.state_disarming) "jammed" -> context.getString(commonR.string.state_jammed) "locked" -> context.getString(commonR.string.state_locked) "locking" -> context.getString(commonR.string.state_locking) @@ -646,6 +648,7 @@ fun Entity.friendlyState(context: Context, options: EntityRegistryOptions "on" -> context.getString(commonR.string.state_on) "open" -> context.getString(commonR.string.state_open) "opening" -> context.getString(commonR.string.state_opening) + "pending" -> context.getString(commonR.string.state_pending) "triggered" -> context.getString(commonR.string.state_triggered) "unavailable" -> context.getString(commonR.string.state_unavailable) "unlocked" -> context.getString(commonR.string.state_unlocked) @@ -696,12 +699,13 @@ fun Entity.friendlyState(context: Context, options: EntityRegistryOptions fun Entity.canSupportPrecision() = domain == "sensor" && state.toDoubleOrNull() != null fun Entity.isExecuting() = when (state) { + "arming" -> true + "buffering" -> true "closing" -> true + "disarming" -> true "locking" -> true "opening" -> true + "pending" -> true "unlocking" -> true - "buffering" -> true - "disarming" -> true - "arming" -> true else -> false } diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index fbb21efdb2d..fac61393068 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -1138,9 +1138,12 @@ Alarm Control Panels Triggered Disarmed - Armed Vacation - Armed Night - Armed Home - Armed Custom Bypass - Armed Away + Armed vacation + Armed night + Armed home + Armed custom bypass + Armed away + Arming + Disarming + Pending