💬 Entity State Notification

Could you share a trace log of the automation run when this error appears?

Strange, because now, I didn’t get the error

But here is my logs

{
  "trace": {
    "last_step": "action/0/else/3/then/0",
    "run_id": "3701191a6fc5b97a41a6085cede95c3f",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2025-04-15T13:52:24.663811+00:00",
      "finish": "2025-04-15T13:52:25.297701+00:00"
    },
    "domain": "automation",
    "item_id": "1744725092800",
    "trigger": "state of binary_sensor.0x00158d008b80560d_contact",
    "trace": {
      "trigger/1": [
        {
          "path": "trigger/1",
          "timestamp": "2025-04-15T13:52:24.664900+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.001_test",
              "state": "on",
              "attributes": {
                "id": "1744725092800",
                "last_triggered": null,
                "mode": "parallel",
                "current": 0,
                "max": 10,
                "friendly_name": "001 Test"
              },
              "last_changed": "2025-04-15T13:52:10.780822+00:00",
              "last_reported": "2025-04-15T13:52:10.780969+00:00",
              "last_updated": "2025-04-15T13:52:10.780822+00:00",
              "context": {
                "id": "01JRWVHFGW8GJKBWXGZD791V0Q",
                "parent_id": null,
                "user_id": null
              }
            },
            "trigger": {
              "id": "state_off",
              "idx": "1",
              "alias": null,
              "platform": "state",
              "entity_id": "binary_sensor.0x00158d008b80560d_contact",
              "from_state": {
                "entity_id": "binary_sensor.0x00158d008b80560d_contact",
                "state": "on",
                "attributes": {
                  "device_class": "door",
                  "friendly_name": "FenĂȘtre bureau Porte"
                },
                "last_changed": "2025-04-15T13:50:23.894300+00:00",
                "last_reported": "2025-04-15T13:50:23.894300+00:00",
                "last_updated": "2025-04-15T13:50:23.894300+00:00",
                "context": {
                  "id": "01JRWVE74P2EH525C29MYTAV9R",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "to_state": {
                "entity_id": "binary_sensor.0x00158d008b80560d_contact",
                "state": "off",
                "attributes": {
                  "device_class": "door",
                  "friendly_name": "FenĂȘtre bureau Porte"
                },
                "last_changed": "2025-04-15T13:52:24.663531+00:00",
                "last_reported": "2025-04-15T13:52:24.663531+00:00",
                "last_updated": "2025-04-15T13:52:24.663531+00:00",
                "context": {
                  "id": "01JRWVHX2Q3YAN1EX1FV9DMVBX",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "for": null,
              "attribute": null,
              "description": "state of binary_sensor.0x00158d008b80560d_contact"
            },
            "input_entities": [
              "binary_sensor.0x00158d008b80560d_contact"
            ],
            "input_numeric_entity_operator": "above",
            "input_numeric_entity_state": 0,
            "input_period": {
              "hours": 0,
              "minutes": 0,
              "seconds": 0
            },
            "input_notify_devices": [
              "07dcd327cf42c7e92f9f2e53dacb8138"
            ],
            "input_notify_groups": [],
            "input_notification_color": [
              100,
              200,
              240
            ],
            "input_led_color": [
              100,
              200,
              240
            ],
            "input_stop_button_text": "Stop notifying",
            "input_entity_states": [
              "false"
            ],
            "input_notification_auto_delete": true,
            "is_period_trigger": false,
            "now_ts": "2025-04-15 15:52:24.664022+02:00",
            "is_perodical": false,
            "entity": "binary_sensor.0x00158d008b80560d_contact",
            "entity_name": "FenĂȘtre bureau Porte",
            "action_tag": "STOP_automation.001_test_binary_sensor.0x00158d008b80560d_contact",
            "tag": "001_test0x00158d008b80560d_contact",
            "notification_color_hex": "

Sorry, I’m not sure that, that’s you want.

It’s generated 2 events within 5 seconds :

{
  "trace": {
    "last_step": "action/0/else/3/then/0",
    "run_id": "ccb6569cafc1197ff9e332b811391405",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2025-04-15T13:52:27.915054+00:00",
      "finish": "2025-04-15T13:52:28.412548+00:00"
    },
    "domain": "automation",
    "item_id": "1744725092800",
    "trigger": "state of binary_sensor.0x00158d008b80560d_contact",
    "trace": {
      "trigger/1": [
        {
          "path": "trigger/1",
          "timestamp": "2025-04-15T13:52:27.916113+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.001_test",
              "state": "on",
              "attributes": {
                "id": "1744725092800",
                "last_triggered": "2025-04-15T13:52:24.665076+00:00",
                "mode": "parallel",
                "current": 0,
                "max": 10,
                "friendly_name": "001 Test"
              },
              "last_changed": "2025-04-15T13:52:10.780822+00:00",
              "last_reported": "2025-04-15T13:52:25.296516+00:00",
              "last_updated": "2025-04-15T13:52:25.296516+00:00",
              "context": {
                "id": "01JRWVHX2Q3ZZHXVYDJJAC9AKR",
                "parent_id": "01JRWVHX2Q3YAN1EX1FV9DMVBX",
                "user_id": null
              }
            },
            "trigger": {
              "id": "state_off",
              "idx": "1",
              "alias": null,
              "platform": "state",
              "entity_id": "binary_sensor.0x00158d008b80560d_contact",
              "from_state": {
                "entity_id": "binary_sensor.0x00158d008b80560d_contact",
                "state": "off",
                "attributes": {
                  "device_class": "door",
                  "friendly_name": "FenĂȘtre bureau Porte"
                },
                "last_changed": "2025-04-15T13:52:24.663531+00:00",
                "last_reported": "2025-04-15T13:52:24.663531+00:00",
                "last_updated": "2025-04-15T13:52:24.663531+00:00",
                "context": {
                  "id": "01JRWVHX2Q3YAN1EX1FV9DMVBX",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "to_state": {
                "entity_id": "binary_sensor.0x00158d008b80560d_contact",
                "state": "on",
                "attributes": {
                  "device_class": "door",
                  "friendly_name": "FenĂȘtre bureau Porte"
                },
                "last_changed": "2025-04-15T13:52:27.914783+00:00",
                "last_reported": "2025-04-15T13:52:27.914783+00:00",
                "last_updated": "2025-04-15T13:52:27.914783+00:00",
                "context": {
                  "id": "01JRWVJ08A6C4D68AVZ120XGPJ",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "for": null,
              "attribute": null,
              "description": "state of binary_sensor.0x00158d008b80560d_contact"
            },
            "input_entities": [
              "binary_sensor.0x00158d008b80560d_contact"
            ],
            "input_numeric_entity_operator": "above",
            "input_numeric_entity_state": 0,
            "input_period": {
              "hours": 0,
              "minutes": 0,
              "seconds": 0
            },
            "input_notify_devices": [
              "07dcd327cf42c7e92f9f2e53dacb8138"
            ],
            "input_notify_groups": [],
            "input_notification_color": [
              100,
              200,
              240
            ],
            "input_led_color": [
              100,
              200,
              240
            ],
            "input_stop_button_text": "Stop notifying",
            "input_entity_states": [
              "false"
            ],
            "input_notification_auto_delete": true,
            "is_period_trigger": false,
            "now_ts": "2025-04-15 15:52:27.915227+02:00",
            "is_perodical": false,
            "entity": "binary_sensor.0x00158d008b80560d_contact",
            "entity_name": "FenĂȘtre bureau Porte",
            "action_tag": "STOP_automation.001_test_binary_sensor.0x00158d008b80560d_contact",
            "tag": "001_test0x00158d008b80560d_contact",
            "notification_color_hex": "

Maybe it’s more a problem on my usage of your blueprint :thinking:
I have a door contact and I want to notify it when it’s more than x time opened and exterior temp is below 20 degree for example. My HA is in french, could it be a problem ?
Many thanks

@panhans You have built an awsome blueprint! :sunglasses: