I have a flow that checks the history for a few entities.
Therefore the entity name isn’t hardcoded in the get history node, but send into the node as msg.payload.entity_id instead.
This worked fine in the past, but stopped working now.
I updated Home-Assistant, Node-Red Addon and node-red-contrib-home-assistant-websocket to the latest versions.
I tested it with a minimal demo-setup and set up the Inject like that:
The input field you require in msg.payload is now entityId
There is an ongoing shift between entity_id and entityId for reasons that escape me. Check the node help info or the main documentation for the specific node if in doubt.
I even looked at the docs (locally in Node-Red, not on the github page), but it still showed me entity_id unter inputs, which was part of my confusion.
But that was immediately after updating the package from the node palette.
I restarted Node-Red later and now I see entityId instead of entity_id.
Maybe that’s cached somehow …