Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Subscribe to trigger response appears to be wrong #2439

@benwainwright

Description

@benwainwright

On the websocket API section that tells you how to subscribe to a trigger: https://developers.home-assistant.io/docs/api/websocket/#subscribe-to-trigger it says

For each trigger that matches, the server will send a message of type trigger. The id in the message will point at the original id of the subscribe_trigger command. Note that your variables will be different based on the used trigger.

Straight below that, there is a block of JSON that looks like a sample response... which has a type value of event. Either the response example is wrong, or the quoted statement needs rewording because it reads as contradictory. Happy to raise a PR if someone can confirm for me that I'm right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions