home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.17k stars 29.85k forks source link

Error rendering graph. for automation trace #118570

Open GeoBau opened 3 months ago

GeoBau commented 3 months ago

The problem

Error rendering graph. Please download trace and share with the developers:

What version of Home Assistant Core has the issue?

core-2024.5.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Automation > Trace

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

description: Husqvarana Automatik
mode: single
id: husqvarna-auto
trigger:
  - platform: time
    at: "09:10:00"
    id: init-dock
  # start erfolgt am ende nicht bei regen
  - platform: time
    at: "09:30:00"
    id: init-start
  - platform: time
    at: "12:30:00"
    id: mittag_start

  - platform: time
    at: "16:10:00"
    id: ende
  #es fängt während des Tages zu regnen an
  - platform: numeric_state
    entity_id: sensor.davis_regen
    above: 0.35
    id: es_regnet
  - platform: state
    entity_id: switch.automatik_an_aus_switch_0
    from: "off"
    to: "on"
    id: automatik
condition: null #muss leer bleiben damit stop nicht verhindert wird
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - es_regnet
              - ende
              - init-dock
              - automatik
        sequence:
          - service: lawn_mower.dock
            data:
              entity_id: lawn_mower.he415x
  - choose:
      - conditions:
          - condition: numeric_state
            entity_id: sensor.davis_regen_pro_24h
            below: 4
          - condition: numeric_state
            entity_id: sensor.davis_regen
            below: 0.35
          - condition: trigger
            id:
              - init-start
              - mittag-start
        sequence:
          - service: lawn_mower.start_mowing
            data:
              entity_id: lawn_mower.he415x
alias: husqvarna_auto

Anything in the logs that might be useful for us?

this is the yson for the trace

Ausgeführt: 31. Mai 2024 um 16:58:54
Ausgeführt: 31. Mai 2024 um 16:58:54
Ergebnis:
choice: 0
hoose/0
Ausgeführt: 31. Mai 2024 um 16:58:54
Ergebnis:
result: true
hoose/0/conditions/0
Ausgeführt: 31. Mai 2024 um 16:58:54
Ergebnis:
result: true
hoose/0/sequence/0
Ausgeführt: 31. Mai 2024 um 16:58:54
Ergebnis:
params:
  domain: lawn_mower
  service: dock
  service_data:
    entity_id: lawn_mower.he415x
  target: {}
running_script: false
Ausgeführt: 31. Mai 2024 um 16:58:56
hoose/0
Ausgeführt: 31. Mai 2024 um 16:58:56
Ergebnis:
result: false
hoose/0/conditions/0
Ausgeführt: 31. Mai 2024 um 16:58:56
Ergebnis:
result: false
hoose/0/conditions/0/entity_id/0
Ausgeführt: 31. Mai 2024 um 16:58:56
Ergebnis:
result: false
state: 26.4
wanted_state_below: 4
{
  "trace": {
    "last_step": "action/3",
    "run_id": "3426f57a9c4a3dbafe0b02f0baac96f3",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2024-06-01T08:23:14.685782+00:00",
      "finish": "2024-06-01T08:23:16.471638+00:00"
    },
    "domain": "automation",
    "item_id": "husqvarna-auto",
    "trigger": "numeric state of sensor.davis_regen",
    "trace": {
      "trigger/4": [
        {
          "path": "trigger/4",
          "timestamp": "2024-06-01T08:23:14.686298+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.husqvarna_auto",
              "state": "on",
              "attributes": {
                "id": "husqvarna-auto",
                "last_triggered": "2024-06-01T08:15:43.946338+00:00",
                "mode": "single",
                "current": 0,
                "friendly_name": "husqvarna_auto"
              },
              "last_changed": "2024-06-01T08:15:12.095494+00:00",
              "last_reported": "2024-06-01T08:15:43.956541+00:00",
              "last_updated": "2024-06-01T08:15:43.956541+00:00",
              "context": {
                "id": "01HZ9DWVT9T59JGFQQRVGV3GC4",
                "parent_id": "01HZ9DWVT8QZQKBZ7CC7A4KFGY",
                "user_id": null
              }
            },
            "trigger": {
              "id": "es_regnet",
              "idx": "4",
              "alias": null,
              "platform": "numeric_state",
              "entity_id": "sensor.davis_regen",
              "below": null,
              "above": 0.35,
              "from_state": {
                "entity_id": "sensor.davis_regen",
                "state": "0.2",
                "attributes": {
                  "unit_of_measurement": "mm",
                  "device_class": "precipitation",
                  "friendly_name": "davis_regen"
                },
                "last_changed": "2024-06-01T07:13:14.153460+00:00",
                "last_reported": "2024-06-01T07:13:14.153460+00:00",
                "last_updated": "2024-06-01T07:13:14.153460+00:00",
                "context": {
                  "id": "01HZ9AADX9KVWED7NQG3R3PQ5K",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "to_state": {
                "entity_id": "sensor.davis_regen",
                "state": "0.4",
                "attributes": {
                  "unit_of_measurement": "mm",
                  "device_class": "precipitation",
                  "friendly_name": "davis_regen"
                },
                "last_changed": "2024-06-01T08:23:14.679443+00:00",
                "last_reported": "2024-06-01T08:23:14.679443+00:00",
                "last_updated": "2024-06-01T08:23:14.679443+00:00",
                "context": {
                  "id": "01HZ9EAKZQ0M4MDMJM96TTXV9G",
                  "parent_id": null,
                  "user_id": null
                }
              },
              "for": null,
              "description": "numeric state of sensor.davis_regen"
            }
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2024-06-01T08:23:14.687155+00:00",
          "changed_variables": {
            "context": {
              "id": "01HZ9EAKZXCEYQ0JJQGP384X1E",
              "parent_id": "01HZ9EAKZQ0M4MDMJM96TTXV9G",
              "user_id": null
            }
          },
          "result": {
            "params": {
              "domain": "persistent_notification",
              "service": "create",
              "service_data": {
                "title": "He415x Start docked",
                "message": "Fehler no_error"
              },
              "target": {}
            },
            "running_script": false
          }
        }
      ],
      "action/1": [
        {
          "path": "action/1",
          "timestamp": "2024-06-01T08:23:14.689702+00:00",
          "result": {
            "choice": 0
          }
        }
      ],
      "action/1/choose/0": [
        {
          "path": "action/1/choose/0",
          "timestamp": "2024-06-01T08:23:14.689912+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "action/1/choose/0/conditions/0": [
        {
          "path": "action/1/choose/0/conditions/0",
          "timestamp": "2024-06-01T08:23:14.690002+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "action/1/choose/0/sequence/0": [
        {
          "path": "action/1/choose/0/sequence/0",
          "timestamp": "2024-06-01T08:23:14.690957+00:00",
          "result": {
            "params": {
              "domain": "lawn_mower",
              "service": "dock",
              "service_data": {
                "entity_id": "lawn_mower.he415x"
              },
              "target": {}
            },
            "running_script": false
          }
        }
      ],
      "action/2": [
        {
          "path": "action/2",
          "timestamp": "2024-06-01T08:23:16.453945+00:00"
        }
      ],
      "action/2/choose/0": [
        {
          "path": "action/2/choose/0",
          "timestamp": "2024-06-01T08:23:16.454478+00:00",
          "result": {
            "result": false
          }
        }
      ],
      "action/2/choose/0/conditions/0": [
        {
          "path": "action/2/choose/0/conditions/0",
          "timestamp": "2024-06-01T08:23:16.454778+00:00",
          "result": {
            "result": false
          }
        }
      ],
      "action/2/choose/0/conditions/0/entity_id/0": [
        {
          "path": "action/2/choose/0/conditions/0/entity_id/0",
          "timestamp": "2024-06-01T08:23:16.455508+00:00",
          "result": {
            "result": false,
            "state": 53.6,
            "wanted_state_below": 4
          }
        }
      ],
      "action/3": [
        {
          "path": "action/3",
          "timestamp": "2024-06-01T08:23:16.455919+00:00",
          "result": {
            "params": {
              "domain": "persistent_notification",
              "service": "create",
              "service_data": {
                "title": "He415x Ende docked",
                "message": "Fehler no_error"
              },
              "target": {}
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "description": "Husqvarana Automatik",
      "mode": "single",
      "id": "husqvarna-auto",
      "trigger": [
        {
          "platform": "time",
          "at": "09:10:00",
          "id": "init-dock"
        },
        {
          "platform": "time",
          "at": "09:30:00",
          "id": "init-start"
        },
        {
          "platform": "time",
          "at": "12:30:00",
          "id": "mittag_start"
        },
        {
          "platform": "time",
          "at": "16:10:00",
          "id": "ende"
        },
        {
          "platform": "numeric_state",
          "entity_id": "sensor.davis_regen",
          "above": 0.35,
          "id": "es_regnet"
        }
      ],
      "condition": null,
      "action": [
        {
          "service": "persistent_notification.create",
          "data": {
            "title": "He415x Start {{ states('lawn_mower.he415x') }}",
            "message": "Fehler {{ states('sensor.he415x_fehler') }}"
          }
        },
        {
          "choose": [
            {
              "conditions": [
                {
                  "condition": "trigger",
                  "id": [
                    "es_regnet",
                    "ende",
                    "init-dock"
                  ]
                }
              ],
              "sequence": [
                {
                  "service": "lawn_mower.dock",
                  "data": {
                    "entity_id": "lawn_mower.he415x"
                  }
                }
              ]
            }
          ]
        },
        {
          "choose": [
            {
              "conditions": [
                {
                  "condition": "numeric_state",
                  "entity_id": "sensor.davis_regen_pro_24h",
                  "below": 4
                },
                {
                  "condition": "numeric_state",
                  "entity_id": "sensor.davis_regen",
                  "below": 0.35
                },
                {
                  "condition": "trigger",
                  "id": [
                    "init-start",
                    "mittag-start"
                  ]
                }
              ],
              "sequence": [
                {
                  "service": "lawn_mower.start_mowing",
                  "data": {
                    "entity_id": "lawn_mower.he415x"
                  }
                }
              ]
            }
          ]
        },
        {
          "service": "persistent_notification.create",
          "data": {
            "title": "He415x Ende {{ states('lawn_mower.he415x') }}",
            "message": "Fehler {{ states('sensor.he415x_fehler') }}"
          }
        }
      ],
      "alias": "husqvarna_auto"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01HZ9EAKZXCEYQ0JJQGP384X1E",
      "parent_id": "01HZ9EAKZQ0M4MDMJM96TTXV9G",
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "husqvarna_auto",
      "message": "triggered by numeric state of sensor.davis_regen",
      "source": "numeric state of sensor.davis_regen",
      "entity_id": "automation.husqvarna_auto",
      "context_id": "01HZ9EAKZXCEYQ0JJQGP384X1E",
      "when": 1717230194.6865237,
      "domain": "automation"
    }
  ]
}

Additional information

the automation is working - but the trace is not viewed.

issue-triage-workflows[bot] commented 2 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

a005 commented 2 weeks ago

Core 2024.8.2 - same problem (not stale)