core: WLED: utf-8 error

The problem

I seem to be having the same issue as reported here: https://github.com/home-assistant/core/issues/89884

Oddly enough, the automation errors out at the same position as in the previous report “861”.

I already tried overwriting and saving the file in N++ making sure I am using UTF-8 encoding. After restarting the WLED device and reloading the integration, the automation runs fine once. The second time I run it, I get this error message. I am attaching the Trace here as well. Any suggestions would be greatly appreciated.

trace automation.wled_veterans_day 2023-11-10T00_08_39.176374+00_00.json

What version of Home Assistant Core has the issue?

2023.11.1

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 for WLED

Link to integration documentation on our website

No response

Diagnostics information

config_entry-wled-42417ce3988da4a034f0b57863c28688.json.txt

Example YAML snippet

alias: WLED Veterans Day
description: "Displays Veterans Day light strip 45 minute after sunset. "
trigger:
  - platform: sun
    event: sunset
    offset: "00:45:00"
condition:
  - condition: time
    after: input_datetime.veterans_day_start
    before: input_datetime.veterans_day_end
    weekday:
      - sat
      - fri
      - thu
      - wed
      - tue
      - mon
      - sun
action:
  - device_id: 412c6ec03477ca9b61e1c2d87955ffcb
    domain: select
    entity_id: f6aa8b5af55284853e871baf88c8a3fb
    type: select_option
    option: VeteransDay
mode: single

Anything in the logs that might be useful for us?

{
  "trace": {
    "last_step": "action/0",
    "run_id": "aeaa30d2129b2c3158557cb64c65bfe1",
    "state": "stopped",
    "script_execution": "error",
    "timestamp": {
      "start": "2023-11-10T00:08:39.176374+00:00",
      "finish": "2023-11-10T00:08:39.408728+00:00"
    },
    "domain": "automation",
    "item_id": "1698966889024",
    "error": "'utf-8' codec can't decode byte 0xeb in position 861: invalid continuation byte",
    "trigger": null,
    "trace": {
      "trigger": [
        {
          "path": "trigger",
          "timestamp": "2023-11-10T00:08:39.176458+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.wled_veterans_day",
              "state": "on",
              "attributes": {
                "id": "1698966889024",
                "last_triggered": "2023-11-10T00:08:15.411726+00:00",
                "mode": "single",
                "current": 0,
                "friendly_name": "WLED Veterans Day"
              },
              "last_changed": "2023-11-09T23:33:45.028528+00:00",
              "last_updated": "2023-11-10T00:08:15.569603+00:00",
              "context": {
                "id": "01HEV8XMSKMXHERWXSXE0SW1D3",
                "parent_id": "01HEV8XMSJ6QY6T6Y16DDSVT3P",
                "user_id": null
              }
            },
            "trigger": {
              "platform": null
            }
          }
        }
      ],
      "action/0": [
        {
          "path": "action/0",
          "timestamp": "2023-11-10T00:08:39.179556+00:00",
          "changed_variables": {
            "context": {
              "id": "01HEV8YC0833J4SND4WSGK6YPM",
              "parent_id": "01HEV8YC07D33SWA471YYNZ60K",
              "user_id": null
            }
          },
          "error": "'utf-8' codec can't decode byte 0xeb in position 861: invalid continuation byte"
        }
      ]
    },
    "config": {
      "id": "1698966889024",
      "alias": "WLED Veterans Day",
      "description": "Displays Veterans Day light strip 45 minute after sunset. ",
      "trigger": [
        {
          "platform": "sun",
          "event": "sunset",
          "offset": "00:45:00"
        }
      ],
      "condition": [
        {
          "condition": "time",
          "after": "input_datetime.veterans_day_start",
          "before": "input_datetime.veterans_day_end",
          "weekday": [
            "sat",
            "fri",
            "thu",
            "wed",
            "tue",
            "mon",
            "sun"
          ]
        }
      ],
      "action": [
        {
          "device_id": "412c6ec03477ca9b61e1c2d87955ffcb",
          "domain": "select",
          "entity_id": "f6aa8b5af55284853e871baf88c8a3fb",
          "type": "select_option",
          "option": "VeteransDay"
        }
      ],
      "mode": "single"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01HEV8YC0833J4SND4WSGK6YPM",
      "parent_id": "01HEV8YC07D33SWA471YYNZ60K",
      "user_id": null
    }
  },
  "logbookEntries": [
    {
      "name": "WLED Veterans Day",
      "message": "triggered",
      "source": null,
      "entity_id": "automation.wled_veterans_day",
      "context_id": "01HEV8YC0833J4SND4WSGK6YPM",
      "when": 1699574919.176572,
      "domain": "automation"
    },
    {
      "when": 1699574919.427214,
      "state": "VeteransDay",
      "entity_id": "select.wled_preset",
      "icon": "mdi:playlist-play",
      "context_event_type": "automation_triggered",
      "context_domain": "automation",
      "context_name": "WLED Veterans Day",
      "context_message": "triggered",
      "context_entity_id": "automation.wled_veterans_day"
    }
  ]
}

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Reactions: 1
  • Comments: 28

Most upvoted comments

I have the same issue. No special characters, no spaces in Preset names, nor in segment names. 0.14.0 on esp8266 has some issue with json responses, so I installed latest 0.15 branch and json problem is gone, but utf8 issue is still there.