#Unable to get binary_sensor.workday_sensor to work as expected

1 messages · Page 1 of 1 (latest)

upper grove
#

Current config:

- id: "1748555992501"
  alias: TrueNAS ON Weekdays
  description: ""
  triggers:
  - trigger: time
    at: "16:00:00"
  conditions:
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: "on"
  actions:
  - target:
      entity_id:
      - switch.wol_truenas
    data: {}
    action: switch.turn_on
  mode: single
- id: "1748556052084"
  alias: TrueNAS ON Weekends
  description: ""
  triggers:
  - trigger: time
    at: "08:00:00"
  conditions:
  - condition: state
    entity_id: binary_sensor.workday_sensor
    state: "off"
  actions:
  - target:
      entity_id:
      - switch.wol_truenas
    data: {}
    action: switch.turn_on
  mode: single

If I run either automation manually then it triggers WOL. However the automation never runs on it's own, telling me that the conditions or the condition triggers are not working. Curious what I'm missing.
I've had the time only trigger working on it's own in the past, but I would love to be able to leverage the workday sensor to further reduce when the automation triggers.

ebon gullBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

proud oxide
#

Did you actually verify the binary_sensor.workday_sensor?

upper grove
#

I'm not sure what you mean by verify? I thought it was a built in sensor? The documentation for using it as a condition didn't mention any additional configuration.

#

Will try that later today.

proud oxide
#

Always verify the entity. Some are not on by default but most importantly, everybody can rename every entity to whatever they like 🙂

#

And thus, verify by looking the sensor up (Settings => Devices & services => Entities or Dev tools => States) if it exists and if the state is what you expect.