Automation triggers on working but will not turn off

I have setup an automation to turn on / off reading lights & display cabinet at specific time using the imput_time . The automation triggers the On but will not trigger the off. I have checked the config and it valid. Here is my config what i am doing wrong. any help would be appreciated. Thanks

- id: '1624833581628'
  alias: Turn_reading_switch_display_ on
  description: ''
  trigger:
  - platform: time
    at: input_datetime.living_room_reading
  condition: []
  action:
  - service: switch.turn_on
    target:
      entity_id:
      - switch.tasmota_5
      - switch.tz3000_00mk2xzy_ts011f_on_off
  mode: single
- id: '1624887010503'
  alias: Turn_reading_switch_display_off
  description: ''
  trigger:
  - platform: time
    at: input_datetime.turn_off_reading_switch_display
  condition: []
  action:
  - service: switch.turn_off
    target:
      entity_id:
      - switch.tasmota_5
      - switch.tz3000_00mk2xzy_ts011f_on_off
  mode: single

verify that’s the correct entity_id. Other than that, everything looks good.

Thank you for the reply ,it seems to be working now i checked and edited the entity id to input_datetime.turnoff_living_room_reading

Which is now working.

1 Like