Hey there. I could really do with some help.
I have added an Entity Card on my dashboard. I want to use this card to show which windows are open. I only want the window entity to be visible on the card when it is open - otherwise dont show the window entity.
For some reason, the condition state is always ignored. Is there something I am doing wrong - please take a look all ideas and help welcome.
Just some notes of what I have tried to fix the problem:
- I tried the state in quotes and single quotes
- I tried a combination of uppercase and lower case (OPEN/open/Open)
- I checked the entity in HAS to confirm how the state shows (Closed or Open)
- I check the entity shows on the card as expected with no conditions
- You will see in code I tried state and state_not but either way, no luck
The code used
type: entities
entities:
- type: section
label: Windows and doors
- type: conditional
conditions:
- entity: binary_sensor.kitchen_window_contact
state: Open
row:
entity: binary_sensor.kitchen_window_contact
name: Kitchen window
- type: conditional
conditions:
- entity: binary_sensor.lounge_window_contact
state_not: Closed
row:
entity: binary_sensor.lounge_window_contact
name: Lounge window
state_color: false
theme: Mushroom Shadow