Trouble with new visibility conditions

Preformatted text> Blockquote

Preformatted text``Preformatted text> Blockquote

Hi all,
I am looking to make use of the new visibility tab introduced in 2024.6.
I have created a test entities card. then on the visibility tab I have put three conditions.

  1. is the state of the office occupied
    OR
  2. is the DB Room selector pull down list showing Auto
    OR
  3. Is the DB room selector dropdown showing Office.

At the time of testing with the Office occulpancy showing as Detected and the drop down as the following:

A. Auto TEST card shows
B. Office TEST card hidden
C. something Else TEST card hidden

The desired outcome was that in all cases I wanted the TEST card to be shown as the Office was occupied.
What am I doing wrong?

type: entities
entities:
  - sensor.home_assistant_core_cpu_percent
  - sensor.sabnzbd_status_2
  - sensor.sabnzbd_speed_2
title: Test
visibility:
  - condition: state
    entity: binary_sensor.office_epl_occupancy
    state: 'on'
  - condition: or
    conditions:
      - condition: state
        entity: input_select.db_room_selector
        state: Auto
      - condition: state
        entity: input_select.db_room_selector
        state: Office

Thanks

Paul

If you want the OR of all 3 conditions, they all need to go under the OR. What you have now is office_occupancy AND (db_room_selector == Auto OR db_room_selector == Office)

Like so:

  - condition: or
    conditions:
      - condition: state
        entity: binary_sensor.office_epl_occupancy
        state: 'on'
      - condition: state
        entity: input_select.db_room_selector
        state: Auto
      - condition: state
        entity: input_select.db_room_selector
        state: Office
2 Likes

You seem to have a habit to create topics, ask for help but you lack the decency to react to any effort to help you, let alone show your gratitude and just stay silent even though you are active on the forum!?
Some character but in the end: just as in real life you encounter them everywhere…