Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error rendering graph. for automation trace #118570

Open
GeoBau opened this issue May 31, 2024 · 0 comments
Open

Error rendering graph. for automation trace #118570

GeoBau opened this issue May 31, 2024 · 0 comments

Comments

@GeoBau
Copy link

GeoBau commented May 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant