Skip to content

MQTT Event Missing pinned_id Field #76

@andrewfoster

Description

@andrewfoster

Problem

The MQTT event payload for expired timers does not include the pinned_id field from the pinned timer configuration. This makes it impossible to reliably identify which pinned timer triggered the event using the configured id field.

Expected Behaviour

When a pinned timer expires, the MQTT event payload should include the pinned_id field:

{
  "id": "custom-1737636400000",
  "pinned_id": "bob_1h",
  "label": "Bob 1 Hour",
  ...
}

Actual Behaviour

The pinned_id field is NOT included in the MQTT event payload, only the new timestamp-based id and the label field are included.

Workaround

Currently, I must parse the label field using regex to extract the climate entity name, which is less robust than using the id field.

Suggested Fix

Include pinned_id in the MQTT event payload in the _publishTimerEvent() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions