zachowj / node-red-contrib-home-assistant-websocket

Node-RED integration with Home Assistant
https://zachowj.github.io/node-red-contrib-home-assistant-websocket/
MIT License
487 stars 88 forks source link

Current State node keeps erroring out #1416

Closed TwitchingAstronaut closed 2 months ago

TwitchingAstronaut commented 2 months ago

error.log

Describe the bug

Entity could not be found in cache for entityId: input_boolean.away_mode

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Example Flow

[{"id":"0e0e92698bb4ac57","type":"api-current-state","z":"5ed88380fc772af5","name":"Away Mode","server":"7a986af5c7eea301","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.away_mode","state_type":"habool","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":310,"y":460,"wires":[["340f0a3c6a9f2c37"]]},{"id":"340f0a3c6a9f2c37","type":"rbe","z":"5ed88380fc772af5","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":450,"y":460,"wires":[["f8b02fe6cf838298"]]},{"id":"f8b02fe6cf838298","type":"switch","z":"5ed88380fc772af5","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":460,"wires":[["7e0266a0e5e95030"],["ed5229cd735109bf"]]},{"id":"7e0266a0e5e95030","type":"api-call-service","z":"5ed88380fc772af5","name":"Arm Alarm","server":"7a986af5c7eea301","version":5,"debugenabled":false,"domain":"alarm_control_panel","service":"alarm_arm_away","areaId":[],"deviceId":["781a7b81444434e3113d960d4e677485"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"topic","propertyType":"msg","value":"Arm Alarm","valueType":"str"}],"queue":"none","x":750,"y":440,"wires":[["74fdc3f0ae68ca32"]]},{"id":"ed5229cd735109bf","type":"api-call-service","z":"5ed88380fc772af5","name":"Disarm Alarm","server":"7a986af5c7eea301","version":5,"debugenabled":false,"domain":"alarm_control_panel","service":"alarm_disarm","areaId":[],"deviceId":["781a7b81444434e3113d960d4e677485"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"topic","propertyType":"msg","value":"Disarm Alarm","valueType":"str"}],"queue":"none","x":740,"y":480,"wires":[["74fdc3f0ae68ca32"]]},{"id":"a4febca5caa3a118","type":"inject","z":"5ed88380fc772af5","name":"1 min cron","props":[],"repeat":"","crontab":"*/1 0-23 * * *","once":true,"onceDelay":0.1,"topic":"","x":110,"y":100,"wires":[["c799388e0e3214b1","f2186da6cd4364f0","0e0e92698bb4ac57"]]},{"id":"7a986af5c7eea301","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":"friendlyName","statusSeparator":": ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

Environment Information

Version: 0.65.0

Home Assistant version: 2024.6.3 Companion version: 4.0.0

Node-RED version: 4.0.0 Docker: yes Add-on: no

Node.js version: v20.14.0 x64 linux OS: Linux 5.15.0-101-generic x64

Additional context

TwitchingAstronaut commented 2 months ago

Found the source of the issue. It was the slack module in node-red causing node-red to restart every minute. closing this issue