Node-Red Error - No State -SOLVED-

Hello all,

after adding a new Xiaomi Sensor (the first door sensor in my setup), i´m getting these node-red error: entity could not be found in cache for entity_id: binary_sensor.door_window_sensor_158d0001d84e51, sending empty payload.
In HA the sensor looks golden, with history and all.

Here is the node-red log:

Hass.io Add-on: Node-RED
Flow-based programming for the Internet of Things

Add-on version: 2.0.2
You are running the latest version of this add-on.
System: HassOS 2.10 (armv7 / raspberrypi3)
Home Assistant version: 0.90.2
Supervisor version: 152

Please, share the above information when looking for help
or support in e.g, GitHub, forums or the Discord chat.

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing…
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing…
[21:26:01] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[21:26:02] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 20-config.sh: executing…
[cont-init.d] 20-config.sh: exited 0.
[cont-init.d] 50-remove-conflicts.sh: executing…
audited 237 packages in 8.389s
found 9 moderate severity vulnerabilities
run npm audit fix to fix them, or npm audit for details
[cont-init.d] 50-remove-conflicts.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing…
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-npm-packages.sh: executing…
[cont-init.d] 81-npm-packages.sh: exited 0.
[cont-init.d] 82-user-scripts.sh: executing…
[cont-init.d] 82-user-scripts.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:26:18] INFO: Starting Node-RED…

hassio-addon-node-red@ start /opt
node $NODE_OPTIONS node_modules/node-red/red.js “–settings” “/etc/node-red/config.js”
3 Apr 21:26:26 - [info]
Welcome to Node-RED
===================
3 Apr 21:26:26 - [info] Node-RED version: v0.20.3
3 Apr 21:26:26 - [info] Node.js version: v10.14.2
3 Apr 21:26:26 - [info] Linux 4.14.98-v7 arm LE
3 Apr 21:26:27 - [info] Loading palette nodes
3 Apr 21:26:39 - [info] Settings file : /etc/node-red/config.js
3 Apr 21:26:39 - [info] Context store : ‘default’ [module=memory]
3 Apr 21:26:39 - [info] User directory : /config/node-red/
3 Apr 21:26:39 - [warn] Projects disabled : editorTheme.projects.enabled=false
3 Apr 21:26:39 - [info] Flows file : /config/node-red/flows.json
3 Apr 21:26:39 - [info] Server now running at http://127.0.0.1:1880/
3 Apr 21:26:39 - [info] Starting flows
3 Apr 21:26:40 - [info] Started flows
(node:516) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
3 Apr 21:26:41 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant
3 Apr 21:26:51 - HA Auth - buck authenticated
3 Apr 21:27:47 - [info] Stopping modified flows
3 Apr 21:27:47 - [info] Stopped modified flows
3 Apr 21:27:47 - [info] Starting modified flows
3 Apr 21:27:47 - [info] Started modified flows
3 Apr 21:27:51 - [warn] [api-current-state:5c5ca1.23edb36] entity could not be found in cache for entity_id: binary_sensor.door_window_sensor_158d0001d84e51, sending empty payload

Can someone help?

I deleted the sensor from the Xiaomi gateway and readded it. That solved the problem!