Very simple Automation not working

Hi everybody,

I have a lot of complexes automations, but here there is a mystery… for 3 weeks, automations I created doesn’t work !!

- alias: 'Night Mode Activation with hour'
  initial_state: 'on'
  hide_entity: False
  trigger:
    - platform: time
      at: '23:40'
  condition:
    - condition: state
      entity_id: input_boolean.at_home
      state: 'on'
  action:
    - service: input_boolean.turn_on
      entity_id: input_boolean.night

- alias: 'Night Mode Activation'
  initial_state: 'on'
  hide_entity: False
  trigger:
    - platform: state
      entity_id: input_boolean.night
      to: 'on'
      from: 'off'
  condition:
    - condition: state
      entity_id: input_boolean.at_home
      state: 'on'
  action:
    - service: script.turn_on
      entity_id: script.night

I think I haven’t write mistake, and there is no errors in logs, and it’s really simple automation…
I don’t understand !!

Does it a restriction in with a limited number of automations ?
Today I have 306 automations !

Couple of things to check are the automations on in the FE (I realise you have initial state on, but they can get turned offf) and is input_boolean.at_home set to on? I would also take out the from: off part of the trigger in the night mode. I don’t know if there is a restriction on the number of automations perhaps someone from the devs will know.