State of entity nodes in global context not restored
Describe the bug
I use a couple of number nodes. When Node-Red is restarted the state of the number node is not restored (read) from HA and stored in global context.
To Reproduce
Add a number entity. Maintain a value in HA. Restart Node-Red. Check state of entity in global context.
Expected behavior
No response
Screenshots
Example Flow
[{"id":"1d9f6a52a6dc625f","type":"ha-number","z":"2bd6dc17.504c44","name":"Test","version":1,"debugenabled":false,"inputs":0,"outputs":1,"entityConfig":"638a80c270d4b753","mode":"listen","value":"payload","valueType":"msg","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"value"},{"property":"previousValue","propertyType":"msg","value":"","valueType":"previousValue"}],"x":222,"y":2880,"wires":[[]]},{"id":"638a80c270d4b753","type":"ha-entity-config","server":"97a02c30.758c8","deviceConfig":"","name":"test","version":"6","entityType":"number","haConfig":[{"property":"name","value":"test"},{"property":"icon","value":""},{"property":"entity_picture","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"min_value","value":1},{"property":"max_value","value":10},{"property":"step_value","value":""},{"property":"mode","value":"box"}],"resend":false,"debugEnabled":false},{"id":"97a02c30.758c8","type":"server","name":"Home Assistant","version":5,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":true,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"id","statusSeparator":"um:","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m:s","enableGlobalContextStore":true}]
Environment Information
Version: 0.63.0
Home Assistant version: 2024.3.0 Companion version:
Node-RED version: 3.1.6 Docker: yes Add-on: no
Node.js version: 16.20.2 OS:
Additional context
No response
Same issue appears for switch nodes
As well as for some other entity configs
This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale. Happens every time and is reproducible easily in my environment.
This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The issue is still occurring and reproducible