Workdays Automation not working

Hi and happy Christmas to everyone and happy new year! :slight_smile:
I have little trouble now and would be very thankful if anyone could help me with this problem.
I started to setup automation workdays for lamp switch and finally got it accepted on Configuration validation but i canĀ“t get switch to turn on on specified time.
I have read a lot on forums but i canĀ“t see what iĀ“m doing wrong. I maked a new binary_sensor.yaml
in config folder and specified that in configutation.yaml to include.
here is my configs.

configuration.yaml

binary_sensor: !include binary_sensor.yaml
# Text to speech
#google_translate:
#- platform: google
# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
binary_sensor.yaml

- platform: workday
  country: FI
  workdays: [mon, tue, wed, thu, fri]
automation.yaml

- id: '1608059543763'
  alias: Utelampa On At Evening
  description: Turn on utelampa at evening
  trigger:
  - platform: time
    at: '19:10:00'
  condition:
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: 'on'
  action:
  - service: switch.turn_on
    data: {}
    entity_id: switch.ute_lampa
  mode: single
Hopefully someone can check this and help me :=)

Check the state of the workday sensor in Dev tools/states.
Today is Saturday, so it should be ā€˜offā€™.

Oh dam, iā€™m on wrong day now with these holidays, shame on me :sweat_smile: I will check and come back if it not working and thanks for your reply :blush:

Seems that i got it to work now, i think that the biggest problem was that i haved choosed workingdays on attribute that was optional. Will mark it as solved :slightly_smiling_face:

1 Like

Just add the same issue!

I decide to reply back in this closed topic because in the the visual editor it just looks weird, as we must leave the field ā€œAttributeā€ empty:

This might help some other people with the same issue :wink:

1 Like