Open
Description
I want to create event entity’s history and view it through the logbook.
- Delete the 1st return line.
- Add event_type in attributes.
- However, as shown in the attached picture, all events have the same attribute value "An error has occurred in the dryer".
Updates are made only when an attribute is toAdd or toRemove, but improvements are needed so that events can be updated at the same time.
-
home-assistant-js-websocket
const attributesChanged = toAdd?.a || toRemove?.a;
case "event": {
return localize(`${LOGBOOK_LOCALIZE_PATH}.detected_event_no_type`);
// TODO: This is not working yet, as we don't get historic attribute values
const event_type = hass
.formatEntityAttributeValue(stateObj, "event_type")
?.toString();
Metadata
Metadata
Assignees
Labels
No labels