marstek-venus-rs485-node-red icon indicating copy to clipboard operation
marstek-venus-rs485-node-red copied to clipboard

Title: Insights mode trace/log data empty - JSONata missing $$ prefix in v4.4.0

Open satscan1 opened this issue 10 months ago • 1 comments

Description:

In v4.4.0, the Insights mode (debug dashboard) shows empty trace and log data. The sensor.home_battery_control_trace sensor gets triggered but all attributes remain empty/Unknown.

Root cause:

In 01 start-flow.json, the "Show on debug board" node (ha-fire-event) uses JSONata but references strategy.trace, strategy.execution_start, etc. without the $$ prefix needed to access msg properties in JSONata.

Location: Line ~2362 in 01_start_flow.json

Current (broken):
{
"trace": strategy.trace ? strategy.trace : [],
"start": strategy.execution_start ? strategy.execution_start : 0,
"end": strategy.execution_end ? strategy.execution_end : 0,
"log": log ? log : []
}

Fix:
{
"trace": $$.strategy.trace ? $$.strategy.trace : [],
"start": $$.strategy.execution_start ? $$.strategy.execution_start : 0,
"end": $$.strategy.execution_end ? $$.strategy.execution_end : 0,
"log": $$.log ? $$.log : []
}

Affected version: 4.4.0

satscan1 avatar Jan 25 '26 19:01 satscan1

Hi satscan1, I cannot reproduce your issue.

Can you confirm your fix is working on your system? The $$ are implicit and should sustain without mention in JSONata. But if it fails in your case...

The $$ have been added just to be sure

gitcodebob avatar Jan 27 '26 20:01 gitcodebob