Using conditions and states - Jewish calendar

Hi.
I’m trying to use the Jewish calendar integration.

I’ve tried to do or state and it works on Fridays but not on the other state.

this is the automation I’ve built:

  alias: Turn on Shabat Lights mode
  trigger:
  - platform: sun
    event: sunset
    offset: -00:45:00
  condition:
  - condition: or
    conditions:
    - condition: time
      weekday:
      - fri
    - condition: state
      entity_id: sensor.jewish_calendar_holiday_2
      state: '2'
      attribute: type_id
  action:
  - service: input_boolean.turn_on
    data:
      entity_id: input_boolean.shabat_mode
  mode: single

so i think i didn’t understand the state correctly. maybe something like this will work?

  alias: Turn on Shabat Lights mode
  trigger:
  - platform: sun
    event: sunset
    offset: -00:45:00
  condition:
  - condition: or
    conditions:
    - condition: time
      weekday:
      - fri
    - condition: state
      entity_id: sensor.jewish_calendar_holiday_2
      state: "EREV_YOM_TOV"
      attribute: type
  action:
  - service: input_boolean.turn_on
    data:
      entity_id: input_boolean.shabat_mode
  mode: single

thanks in advance

I created several automations to cast music streams (radio stations) at specific times to my Chromecast devices (*).
I added the Jewish Calendar integration and it has a condition " Jewish Calendar Issur Melacha " which is either ON or OFF.
I want one music stream to play when that condition is ON and another music stream when the condition is OFF.

Since this morning I know how to create these automations. It is only the On or OFF condition that I don’t understand.