It is the chart node (ui_chart).
Each data is separated into a msg, for example msg.payload = "On_Off=0" and msg.Value = false.
Then, through change nodes and other nodes (I use some subflows), I succeed to put the value into a msg.payload, in order to display it on the chart. It is exactly the same process for floating values. Unfortunately, boolean values are displayed every second...
You can see the difference of the number of points on the following picture :
It is "1" when it's TRUE and "0.5" when the value is neither 0 nor 1 (it is a proof that the graph put values every seconds).
Is it more clear ?
Here is a flow which briefly shows the issue :
[
{
"id": "a4acf5dc1a1609b1",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "63a42e24cf2e32f0",
"type": "inject",
"z": "a4acf5dc1a1609b1",
"name": "Fake BOOL data from MQTT",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "10",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 370,
"y": 420,
"wires": [
[
"5741547470c9b752"
]
]
},
{
"id": "91d819c35268a0cc",
"type": "inject",
"z": "a4acf5dc1a1609b1",
"name": "Fake FLOAT data from MQTT",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "10",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "53",
"payloadType": "num",
"x": 370,
"y": 380,
"wires": [
[
"71faf1e86e5c4643"
]
]
},
{
"id": "5741547470c9b752",
"type": "ui_chart",
"z": "a4acf5dc1a1609b1",
"name": "",
"group": "ecfba9d6f29c06b2",
"order": 0,
"width": 0,
"height": 0,
"label": "chart",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "60",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 790,
"y": 420,
"wires": [
[]
]
},
{
"id": "71faf1e86e5c4643",
"type": "ui_chart",
"z": "a4acf5dc1a1609b1",
"name": "",
"group": "ecfba9d6f29c06b2",
"order": 0,
"width": 0,
"height": 0,
"label": "chart",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "60",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 790,
"y": 380,
"wires": [
[]
]
},
{
"id": "65485558cfe68631",
"type": "comment",
"z": "a4acf5dc1a1609b1",
"name": "All data are sent every 30s",
"info": "",
"x": 330,
"y": 340,
"wires": []
},
{
"id": "a3bcd5ee3101268d",
"type": "comment",
"z": "a4acf5dc1a1609b1",
"name": "On my real flow, bool data are sent every 1s",
"info": "",
"x": 1030,
"y": 420,
"wires": []
},
{
"id": "ecfba9d6f29c06b2",
"type": "ui_group",
"name": "Default",
"tab": "54e197d8.7f7fe8",
"order": 1,
"disp": true,
"width": "16",
"collapse": false,
"className": ""
},
{
"id": "54e197d8.7f7fe8",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]