Conditional Cards- Condition from 2 diffrent input_select

To anyone that is able to assit.

I have a need to have a conditional card provide me with following criteria:

I need to be able to select a room (input_select.device) then based on (input_select.device) I need to be able to select a switch (input_select.switch) for the device based on the results of the first input select.

So if I select “bedroom” from (input_select.device) I need switch.bedroom1 linked to “bedroom” presented as a selection in (input_select.switch) .

The main goal is to set a weekday and time to a timer for a device/switch/light for a device.

example:
| input _select.device |
Bedroom
Sittingroom

| |input_select.switch | |
bedroom.switch1
sittingroom.switch1

| | | input_select.day/time| | |
Mon Time
Tue Time

Help will be greatly appreciated.
Quintin

It is not possible to filter a list based on another selection (this isn’t Excel)
You will have to set up a control for each item you want to control.
Try Tom’s code as a starting point : -

You ‘could’ then list these in a folding card to basically hide the meat of them until selected but that’s a completely different issue.

Edit: Tom’s answer below gives you a front end solution, so maybe that’s all you need ?

So like this?

type: vertical-stack
cards:
  - type: entities
    show_header_toggle: false
    entities:
      - entity: input_select.device
  - type: conditional
    conditions:
      - entity: input_select.device
        state: "Bedroom"
    card:
      type: entities
      entities:
        - bedroom.switch1
        - input_select.day_bedroom
        - input_select.time_bedroom
  - type: conditional
    conditions:
      - entity: input_select.device
        state: "Sittingroom"
    card:
      type: entities
      entities:
        - sittingroom.switch1
        - input_select.day_sittingroom
        - input_select.time_sittingroom
2 Likes

Hi Tom_I

Thank you very much. Its not 100%, but you put me 100% in the right direction. Im smiling every time I get 1 step closer. Busy migrating my current system from bl@!nk.

Thank you once again. Much APPRECIATED.