Automation problem after 2021.04 update

Hi,
After updating to 2021.4 I tried to define a new scheduled automation but I receive an error.
Bellow trace debugging file (the error is Stopped because of unknown reason "failed_conditions" at April 8, 2021, 10:29:50 AM (runtime: 0.00 seconds) and condition is condition 0 entity_id 0)

{
  "trace": {
    "last_step": "condition/0/entity_id/0",
    "run_id": "266",
    "state": "stopped",
    "script_execution": "failed_conditions",
    "timestamp": {
      "start": "2021-04-08T07:29:50.000732+00:00",
      "finish": "2021-04-08T07:29:50.000901+00:00"
    },
    "domain": "automation",
    "item_id": "1617862326146",
    "trigger": "time pattern",
    "trace": {
      "trigger/0": [
        {
          "path": "trigger/0",
          "timestamp": "2021-04-08T07:29:50.000789+00:00",
          "changed_variables": {
            "trigger": {
              "platform": "time_pattern",
              "now": "2021-04-08T10:29:50.000412+03:00",
              "description": "time pattern",
              "id": "0"
            }
          }
        }
      ],
      "condition/0": [
        {
          "path": "condition/0",
          "timestamp": "2021-04-08T07:29:50.000826+00:00",
          "result": {
            "result": false
          }
        }
      ],
      "condition/0/entity_id/0": [
        {
          "path": "condition/0/entity_id/0",
          "timestamp": "2021-04-08T07:29:50.000845+00:00",
          "result": {
            "result": false,
            "state": "on",
            "wanted_state": "open"
          }
        }
      ]
    },
    "config": {
      "id": "1617862326146",
      "alias": "Test",
      "description": "",
      "trigger": [
        {
          "platform": "time_pattern",
          "seconds": "/10"
        }
      ],
      "condition": [
        {
          "condition": "state",
          "entity_id": "binary_sensor.test_door",
          "state": "open"
        }
      ],
      "action": [
        {
          "service": "tts.google_translate_say",
          "data": {
            "entity_id": "media_player.master_bedroom_speaker",
            "message": "The shed door is open. Please close the door!!!"
          }
        }
      ],
      "mode": "single"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "f5f22614fc1fda21dc0bfa3fe63b4c11",
      "parent_id": null,
      "user_id": null
    }
  },
  "logbookEntries": []
}

The automations check for a door sensor and triggers a tts message if found open.

It’s looks pretty clear in the trace.
Your wanted state was “open”, but the actual state was “on”.
So you need to change your condition to look for the state “on” not “open”.

Thanks Sam. Indeed was the state check. I saw the status in dashboard as open and I used the wrong state in automation.

Always best checking the actual states in Dev tools.