-
Notifications
You must be signed in to change notification settings - Fork 4
MQTT Event Missing pinned_id Field #76
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels