t0bst4r / matterbridge-home-assistant

Apache License 2.0
112 stars 13 forks source link

[Bug]: DEBUG CommandServer Invoke off with data "undefined" #267

Open tam481 opened 3 months ago

tam481 commented 3 months ago

What happened?

Since upgrading to version 2.7, Alexa has been working intermittently, in all cases, it takes about 10 seconds before the action is carried out.

Your configuration

"matcher": {
      // optional: include all entities of these domains:
      "includeDomains": [
        "light",
        "switch"
      ],
      // optional: include all entities matching these entity_id patterns:
      "includePatterns": [
        ""
      ],
      // optional: include all entities having one of these labels.
      // It is important to use the slug of the label. When your label is "My Devices", the slug is most probably "my_devices".
      "includeLabels": [
        "exposed_to_voice_assistant"
      ],
      // optional: include all entities having one of the following platforms (= integration)
      // It is important to use the slug of the platform / integration.
      "includePlatforms": [
        ""
      ],
      // optional: exclude all entities of these domains:
      "excludeDomains": [
        ""
      ],
      // optional: exclude all entities matching these entity_id patterns:
      "excludePatterns": [
        "switch.power_socket_02",
        "switch.stairs_aqara_switch*",
        "switch.living_area_aqara_switch_power_outage_memory",
        "light.hallway_switch_left",
        "switch.tapo_*",
        "light.tapo_*"
      ],
      // optional: exclude all entities having one of these labels.
      // It is important to use the slug of the label. When your label is "My Devices", the slug is most probably "my_devices".
      "excludeLabels": [
        "unavailable_ok"
      ],
      // optional: exclude all entities having one of the following platforms (= integration)
      // It is important to use the slug of the platform / integration.
      "excludePlatforms": [
        "alexa_media"
      ]
    }
  }

Relevant log output

2024-08-17 21:18:31.205 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 21:18:31.212 DEBUG CommandServer Invoke off response : "undefined"
2024-08-17 21:22:36.928 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 21:22:36.931 DEBUG CommandServer Invoke off response : "undefined"
2024-08-17 21:23:02.036 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 21:23:02.040 DEBUG CommandServer Invoke off response : "undefined"
2024-08-17 21:32:22.083 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 21:32:22.088 DEBUG CommandServer Invoke off response : "undefined"
2024-08-17 21:32:43.133 DEBUG CommandServer Invoke on with data "undefined"
2024-08-17 21:32:43.137 DEBUG CommandServer Invoke on response : "undefined"
2024-08-17 21:33:09.043 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 21:33:09.046 DEBUG CommandServer Invoke off response : "undefined"
2024-08-17 21:33:21.473 DEBUG CommandServer Invoke on with data "undefined"
2024-08-17 21:33:21.477 DEBUG CommandServer Invoke on response : "undefined"
[21:36:34.436] [Matterbridge] The plugin matterbridge-home-assistant is up to date. Current version: 2.7.1, Latest version: 2.7.1
2024-08-17 21:37:08.044 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 21:37:08.047 DEBUG CommandServer Invoke off response : "undefined"
2024-08-17 22:13:38.795 DEBUG CommandServer Invoke on with data "undefined"
2024-08-17 22:13:38.798 DEBUG CommandServer Invoke on response : "undefined"
2024-08-17 22:13:51.273 DEBUG CommandServer Invoke off with data "undefined"
2024-08-17 22:13:51.277 DEBUG CommandServer Invoke off response : "undefined"

Version

2.7.1

antoniozh commented 3 months ago

I'm having the same issues, and sometimes it does not work at all.

t0bst4r commented 3 months ago

That is interesting. It doesn’t happen for me. it seems to me like something is spamming the command server.

  1. do those messages appear only when you try to execute one command, or do those log messages appear all the time even when you didn’t ask anything for hours?
  2. Is it happening for all kind of devices? Could you try to only include one device/domain and then step by step add more to figure out which is causing the issue?
antoniozh commented 3 months ago

Hi, sometimes one of the devices glitches out when I try to turn it off/on via Alexa.

  1. The error occurs twice per voice command (data is undefined and response is undefined)
  2. It happens randomly on my devices, I can fix it when I remove it from the Alexa app and search for devices to find it again.