Sunset automation doesn't work normally

Please help to clarify why this automation does not work.
It was supposed to close shutters when sunset is below specific elevation level when selected lights are turned on.
It worked several times then stopped. Have no idea why…

- id: '1587207743258'
  alias: Shutters down when Living room Light on close to SunDown
  description: ''
  trigger:
  - below: '2.40'
    entity_id: sun.sun
    platform: numeric_state
    value_template: '{{ state.attributes.elevation }}'
  condition:
  - condition: or
    conditions: 
    - condition: state
      entity_id: light.led_gostinaia
      state: 'on'
    - condition: state
      entity_id: light.svet_v_koridore
      state: 'on'
  action:
  - data: {}
    entity_id: cover.zhaliuzi_sosed
    service: cover.close_cover

Your first condition is missing an entity id and a state.

@tom_l
Sorry, posted the text from mobile and omitted some parameters during pasting the code.I have about 8 light switches, just left 2 of them to make code shorter.
I need Cover to be closed if some light among listed ones is lit in case sun elevation is below appointed level, or if it was already lit but sunset went below elevation level after that.
Looks like Automation is working only in second case. How can I make it versatile for both cases?