Use the separate data from a message

Dear a Windows noop trying to play with NR.

I would like to use the data from a message in my Domoticz system.

3-7-2023 11:14:45node: debug 546
domoticz/out : msg.payload : Object
object
Battery: 255
LastUpdate: "2023-07-03 11:14:44"
RSSI: 12
description: "SET5→SetZ1HeatRequestTemperature→Set Z1 heat shift or direct heat temperature→-5 to 5 or 20 to max↵NR: WP-Shift W"
dtype: "Thermostat"
hwid: "20"
id: "00172EC"
idx: 12956
name: "WP Shift W HM"
nvalue: 0
stype: "SetPoint"
svalue1: "-1.00"
unit: 1


Now I can't get any further to filter the data from the messages as posted here

For example, I want to filter the status of svalue1 only by a node so that I can use this value in Domoticz.
ScreenShot650

Or filter the Battery or ID, and use that part only:

3-7-2023 11:14:45node: debug 546
domoticz/out : msg.payload : Object
object
Battery: 255
LastUpdate: "2023-07-03 11:14:44"
RSSI: 12
description: "SET5→SetZ1HeatRequestTemperature→Set Z1 heat shift or direct heat temperature→-5 to 5 or 20 to max↵NR: WP-Shift W"
dtype: "Thermostat"
hwid: "20"
id: "00172EC"

Or use/filter the Voltage from this node
Or use the temperature from this node

3-7-2023 11:18:02node: debug 527
homeassistant-dakrand-gen2-1pm/status/switch:0 : msg.payload : Object
object
id: 0
source: "mqtt"
output: true
apower: 382.2
voltage: 233.2
current: 1.734
aenergy: object
total: 9283.228
by_minute: array[3]
minute_ts: 1688375879
temperature: object
tC: 53.5
tF: 128.4

Then I have to add this data to a string, with value that Domoticz accepts.

I try a lot used filters, from older flows.
I try some functions from old flows.
Only i cannot get this data separate :frowning:

I hope someone can help with small steps.

This is the main question if you want an answer:

what format does the Domoticz message need to look like ?

mmm Not the mean, i think.
I am searching to filter/seperate the topics....

This is what Domoticz need:
https://www.domoticz.com/wiki/MQTT#MQTT_to_Domoticz

I try to learn, so the first step seperate, then to domoticz :slight_smile:

You need to understand the structure of messages.
There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

You also need to be able to precisely define the message that you will pass to domoticz. Will it be a single value or a javascript {key:value} object?
You can use the Inject node to send single value or key:value objects to identify which format is required.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.