- id: '1539066612689'
  alias: Shabbat/YomTov Checker
  trigger:
  - minutes: /1
    platform: time
    seconds: 0
  condition:
  - condition: and
    conditions:
    - condition: template
      value_template: '{{ as_timestamp(states.sensor.shabbat_times_us_los_angeles_ca.attributes.shabbat_start)
        <= as_timestamp(now()) }}'
    - condition: template
      value_template: '{{ as_timestamp(states.sensor.shabbat_times_us_los_angeles_ca.attributes.shabbat_end)
        >= as_timestamp(now()) }}'
  action:
  - condition: state
    entity_id: input_boolean.shabbat
    state: 'on'
- id: '1539067156164'
  alias: Shabbat/Yom Tov Turn on
  trigger:
  - event: sunset
    offset: -00:30:00
    platform: sun
  condition:
  - condition: state
    entity_id: input_boolean.shabbat
    state: 'on'
  action:
  - data:
      entity_id: group.shabbatlights
    service: homeassistant.turn_on
- id: '1539067353880'
  alias: Shabbat/YomTov Turn off
  trigger:
  - at: 01:00:00
    platform: time
  condition:
  - condition: state
    entity_id: input_boolean.shabbat
    state: 'on'
  action:
  - data:
      entity_id: group.shabbatlights
    service: homeassistant.turn_off
- id: '1539067436657'
  alias: Shabbat/YomTov Start
  trigger:
  - entity_id: input_boolean.shabbat
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: group.shabbatlights
    service: homeassistant.turn_on
- id: '1539067523976'
  alias: Shabbat/YomTov Stop
  trigger:
  - entity_id: input_boolean.shabbat
    from: 'on'
    platform: state
    to: 'off'
  condition: []
  action:
  - data:
      entity_id: group.shabbatlights
    service: homeassistant.turn_off
