Trouble with simple time/day automation

I just got all of my switches set up using my Broadlink RM Pro, and can control them with Alexa using the emulated hue. I’m trying to move on to automation and I just can’t figure out where I’m going wrong. I just want my switch to turn on at 6:00 on workdays. Any help is appreciated!

  automation:
      alias: Weekday Morning Lights
      trigger:
        - platform: time_date
          entity_id: sensor.time
          after: '6:00'
      condition:
        - condition: state
          entity_id: binary_sensor.workday_sensor
          state: on
      action:
        - service: switch.turn_on
          entity_id: switch.fish_tank

Take a look at the possible states for your workday sensor. Are the two possible states on and off?

See below for how to get to the states panel. (ignore my mspaint skills)

Yes, the states are on and off. I used this sensor https://home-assistant.io/components/binary_sensor.workday/ and used the example at the bottom of the page.

According to the docs, https://home-assistant.io/docs/automation/trigger/#time-trigger there is no trigger platform time_date and no entity_id.
Where have seen this?

  trigger:
    platform: time
    # When 'after' is used, you cannot also match on hour, minute, seconds.
    # Military time format.
    after: '15:32:00'

I was using this sensor for the time. https://home-assistant.io/components/sensor.time_date/ perhaps that can’t work.

Try using the time trigger like this:

automation:
  alias: Weekday Morning Lights
  trigger:
    platform: time
    after: "06:00:00"
  condition:
    condition: state
    entity_id: binary_sensor.workday_sensor
    state: on
  action:
    service: switch.turn_on
    entity_id: switch.fish_tank

The time and date sensor is used to format the display of the time/date, but not as a value for a trigger/condition.
The time value can be used for a trigger/condition.

Thank you, I will check it out when I get home and give it a go.

Like they said before, use the full HH:MM:SS format for time.

Also, does the holidays module have support for your country? If uncertain, check Available Countries at https://pypi.python.org/pypi/holidays

if not, then perhaps a time condition like this would be good enough?

  trigger:
    - platform: time
      after: '06:00:00'
  condition:
    - condition: time
      weekday:
        - mon
        - tue
        - wed
        - thu
        - fri

Thank you everyone for your help! I had to make some changes, but also figured out the time on my raspberry pi was not accurate. After changing that, I switched to the regular time trigger. I also was required to have ’ around the sensor and its state. Here’s what worked:

automation:
    alias: Workday Morning Lights
    trigger:
      platform: time
      after: "06:00:00"
    condition:
      condition: state
      entity_id: 'binary_sensor.workday_sensor'
      state: 'on'
    action:
      service: switch.turn_on
      entity_id:
        - switch.lamp
        - switch.entry
        - switch.fish_tank