Creating a alarm clock

Good afternoon,

I am almost a year around in Home Assistan and now i am trying this to work but i cant get it working. I think the problem is that for some reason it doesn’t get inside the activation of the time.
if i execute the automation it does the action that i have program it to do.

my code is

#Inside automations

#Alarm clock

- id: '1560900229648'
  alias: Wake 1
  trigger:
    platform: template
    value_template: '{{ states.sensor.time.state == states.sensor.wake_time_1.state
      }}'
  condition:
    condition: or
    conditions:
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_sun_1
        state: 'on'
      - condition: time
        weekday: sun
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_mon_1
        state: 'on'
      - condition: time
        weekday: mon
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_tue_1
        state: 'on'
      - condition: time
        weekday: tue
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_wed_1
        state: 'on'
      - condition: time
        weekday: wed
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_thu_1
        state: 'on'
      - condition: time
        weekday: thu
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_fri_1
        state: 'on'
      - condition: time
        weekday: fri
    - condition: and
      conditions:
      - condition: state
        entity_id: input_boolean.wakestatus_1
        state: 'on'
      - condition: state
        entity_id: input_boolean.wakeweekday_sat_1
        state: 'on'
      - condition: time
        weekday: sat
  action:
  - data:
      entity_id: switch.office_1
    service: switch.turn_on

#Inside Sensor

# Wake 1 Sensors
- platform: template
  sensors:
    wake_hour_1:
      friendly_name: 'Wake Hour 1'
      value_template: '{{ states("input_number.wakehour_1") | round(0) }}'
    wake_minutes_1:
      friendly_name: 'Wake Minutes 1'
      value_template: '{{ states("input_number.wakeminutes_1") | round(0) }}'
    wake_time_1:
      friendly_name: 'Wake Time 1'
      value_template: '{% if states("sensor.wake_hour_1")|length == 1 %}0{% endif %}{{ states("sensor.wake_hour_1") }}:{% if states("sensor.wake_minutes_1")|length == 1 %}0{% endif %}{{ states("sensor.wake_minutes_1") }}'
    wake_time_days_1:
      friendly_name: 'Days'
      value_template: '{% if states.input_boolean.wakeweekday_sun_1.state == "on" %}Sun {% else %} {% endif %}
                        {% if states.input_boolean.wakeweekday_mon_1.state == "on" %}Mon {% else %} {% endif %}
                        {% if states.input_boolean.wakeweekday_tue_1.state == "on" %}Tue {% else %} {% endif %}
                        {% if states.input_boolean.wakeweekday_wed_1.state == "on" %}Wed {% else %} {% endif %}
                        {% if states.input_boolean.wakeweekday_thu_1.state == "on" %}Thu {% else %} {% endif %}
                        {% if states.input_boolean.wakeweekday_fri_1.state == "on" %}Fri {% else %} {% endif %}
                        {% if states.input_boolean.wakeweekday_sat_1.state == "on" %}Sat {% else %} {% endif %}'      

#inside config.yaml

input_boolean:
  wakestatus_1:
    name: Alarm 1
    icon: mdi:alarm
  wakeweekday_sun_1:
    name: Sunday
    icon: mdi:calendar
  wakeweekday_mon_1:
    name: Monday        
    icon: mdi:calendar
  wakeweekday_tue_1:
    name: Tuesday        
    icon: mdi:calendar
  wakeweekday_wed_1:
    name: Wednesday       
    icon: mdi:calendar
  wakeweekday_thu_1:
    name: Thursday       
    icon: mdi:calendar
  wakeweekday_fri_1:
    name: Friday        
    icon: mdi:calendar
  wakeweekday_sat_1:
    name: Saturday        
    icon: mdi:calendar

input_number:
  wakehour_1:
    name: Hour
    min: 00
    max: 23
    step: 1
    icon: mdi:alarm
  wakeminutes_1:
    name: Minutes
    min: 00
    max: 59
    step: 1
     




Only the groups i havent get to work

i was trying this in groups.yaml

wake_1:
  name: wake 1
  entities:
    - input_boolean.wakestatus_1
    - wake_time_1
    - wakehour_1
    - wakeminutes_1
    - wakeweekday_sun_1
    - wakeweekday_mon_1
    - wakeweekday_tue_1
    - wakeweekday_wed_1
    - wakeweekday_thu_1
    - wakeweekday_fri_1
    - wakeweekday_sat_1

and i get this in validation

validation

i have been tryin this for almost a week with not any luck :cry: :cold_sweat:

Thanks in advance for your help