Closed blokl closed 1 year ago
I removed all my flows. And also removed the node-red-contrib-home-assistant-websocket I restarted the Node-Red and importd my flows. He installed the node-red-contrib-home-assistant-websocket automaticly. Now I get the following error:
Error: at Object.evaluateJSONataExpression (/opt/node_modules/@node-red/util/lib/util.js:775:18) at JSONataService.evaluate (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/common/services/JSONataService.js:58:39) at CallService.evaluateJSONata (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/BaseNode.js:131:36) at CallService.onInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/call-service/controller.js:63:50) at CallService.preOnInput (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/BaseNode.js:208:18) at /opt/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26 at Object.trigger (/opt/node_modules/@node-red/util/lib/hooks.js:166:13) at callServiceNode.Node._emitInput (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:202:11) at callServiceNode.Node.emit (/opt/node_modules/@node-red/runtime/lib/nodes/Node.js:186:25) at callServiceNode.Node.receive... 16-9-2023 11:21:41 msg : string[270] "Deprecated API warning: Calls to RED.util.evaluateJSONataExpression must include a callback. This will not be optional in Node-RED 4.0. Please identify the node from the following stack and check for an update on npm. If none is available, please notify the node author." 16-9-2023 11:21:41 msg : string[754] "Error: ↵ at Object.evaluateJSONataExpression (/opt/node_modules/@node-red/util/lib/util.js:775:18)↵ at JSONataService.evaluate (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/common/services/JSONataService.js:58:39)↵ at ComparatorService.getComparatorResult (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/common/services/ComparatorService.js:108:94)↵ at PollState.getComparatorResult (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/BaseNode.js:128:39)↵ at PollState.onTimer (/opt/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/poll-state/controller.js:82:30)↵ at listOnTimeout (node:internal/timers:569:17)↵ at processTimers (node:internal/timers:512:7)" 16-9-2023 11:21:53 msg : string[270] "Deprecated API warning: Calls to RED.util.evaluateJSONataExpression must include a callback. This will not be optional in Node-RED 4.0. Please identify the node from the following stack and check for an update on npm. If none is available, please notify the node author."
Describe the bug
I can start it in safe mode. The error I get is "TypeError: (0 , lodash_1.cloneDeep) is not a function" from several poll state and trigger state.
To Reproduce
Start in safe mode Do a deploy get error "TypeError: (0 , lodash_1.cloneDeep) is not a function" The Node-red crashes see log below
Expected behavior
I like to use Node Red. I allready reinstall Node Red that;s not the solution
After a deploy i get:
16-9-2023 11:01:48node: Youles msg : error "TypeError: (0 , lodash_1.cloneDeep) is not a function" 16-9-2023 11:01:52node: Solis < 150 msg : string[42] "(0 , lodash_1.cloneDeep) is not a function" 16-9-2023 11:01:52node: Kamer temp. msg : string[42] "(0 , lodash_1.cloneDeep) is not a function"
This are my packages:
"name": "node-red-project", "description": "A Node-RED Project", "version": "0.0.1", "private": true, "dependencies": { "node-red-contrib-blindcontroller": "~4.8.6", "node-red-contrib-boolean-logic": "~0.0.3", "node-red-contrib-calc": "~1.0.5", "node-red-contrib-custom-node": "~2.0.0", "node-red-contrib-eztimer": "~1.2.7", "node-red-contrib-home-assistant-websocket": "~0.56.1", "node-red-contrib-homegear-mqtt": "~0.0.4", "node-red-contrib-huemagic-fork": "~4.2.8", "node-red-contrib-stoptimer": "~0.0.7", "node-red-contrib-suncalcinput": "~1.0.0", "node-red-contrib-sunpos": "~1.4.1", "node-red-contrib-traffic": "~0.2.1", "node-red-dashboard": "~3.6.0", "node-red-node-email": "~2.0.1", "victron-dynamic-ess": "~0.1.3" }
Screenshots
No response
Example Flow
This package's version (not the Home Assistant add-on version)
2023.9.2
Is Node-RED running in Docker?
Yes
Node-RED version
14.5.0
Node.js version
14.17.1
Additional context
at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:388:39) at HomeAssistant.getEntities (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/HomeAssistant.js:73:39) at getEntities (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:92:127) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at checkHomeAssistant (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:33:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at disableCache (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:21:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) TypeError: (0 , lodash_1.cloneDeep) is not a function at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:388:39) at getProperties (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:110:137) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at checkHomeAssistant (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:33:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at disableCache (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:21:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) 16 Sep 10:49:17 - [info] [server:Home Assistant] Connecting to http://supervisor/core 16 Sep 10:49:17 - [info] [server:Home Assistant] Connected to http://supervisor/core 16 Sep 10:49:18 - [error] [poll-state:Solis < 150] (0 , lodash_1.cloneDeep) is not a function 16 Sep 10:49:18 - [error] [poll-state:Kamer temp.] (0 , lodash_1.cloneDeep) is not a function 16 Sep 10:49:18 - [error] [api-call-service:5a9045d745239b2b] TypeError: (0 , lodash_1.cloneDeep) is not a function TypeError: (0 , lodash_1.cloneDeep) is not a function at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:388:39) at getEntitiesSelect2 (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:67:44) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at checkHomeAssistant (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:33:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at disableCache (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:21:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) TypeError: (0 , lodash_1.cloneDeep) is not a function at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:388:39) at getEntitiesSelect2 (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:67:44) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at checkHomeAssistant (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:33:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at disableCache (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:21:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) TypeError: (0 , lodash_1.cloneDeep) is not a function at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:388:39) at getEntitiesSelect2 (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:67:44) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at checkHomeAssistant (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:33:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at disableCache (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:21:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) TypeError: (0 , lodash_1.cloneDeep) is not a function at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:388:39) at getEntitiesSelect2 (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:67:44) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at checkHomeAssistant (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:33:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) at disableCache (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/routes.js:21:5) at Layer.handle [as handle_request] (/opt/node_modules/express/lib/router/layer.js:95:5) at next (/opt/node_modules/express/lib/router/route.js:144:13) 16 Sep 10:49:23 - [red] Uncaught Exception: 16 Sep 10:49:24 - [error] TypeError: (0 , lodash_1.cloneDeep) is not a function at Websocket.getStates (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:385:42) at PollState.onTimer (/config/node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/nodes/poll-state/controller.js:60:46) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7)