diff --git a/src/panels/lovelace/editor/conditions/types/ha-card-condition-state.ts b/src/panels/lovelace/editor/conditions/types/ha-card-condition-state.ts index 30d24a2592..006d00c3cf 100644 --- a/src/panels/lovelace/editor/conditions/types/ha-card-condition-state.ts +++ b/src/panels/lovelace/editor/conditions/types/ha-card-condition-state.ts @@ -102,7 +102,7 @@ export class HaCardConditionState extends LitElement { const data: StateConditionData = { ...content, entity: this.condition.entity, - invert: this.condition.state_not ? "true" : "false", + invert: this.condition.state_not !== undefined ? "true" : "false", state: this.condition.state_not ?? this.condition.state, };