Thanks to all - I'm not there yet!
I would like to separate out the temperature and pressure sensor outputs to trigger other MQTT attached devices.
Here is the flow editor output (I hope this is the correct way to share what i,m doing) -
[
{
"id": "399dba2a.7b0306",
"type": "mqtt in",
"z": "50e81bd1.24b564",
"name": "",
"topic": "esp8266BME/tele/SENSOR",
"qos": "0",
"datatype": "json",
"broker": "496ae199.0dca3",
"x": 280,
"y": 520,
"wires": [
[
"2e169ccf.7f3f24"
]
]
},
{
"id": "541f28e6.2f6358",
"type": "switch",
"z": "50e81bd1.24b564",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "msg.payload.Humidity",
"vt": "str"
},
{
"t": "cont",
"v": "msg.payload.Temperature",
"vt": "str"
},
{
"t": "cont",
"v": "msg.payload.Pressure",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 730,
"y": 560,
"wires": [
[
"46cc26dd.9aa7a8"
],
[
"a73a5e3d.bc501"
],
[
"19b373f1.71440c"
],
]
},
{
"id": "46cc26dd.9aa7a8",
"type": "debug",
"z": "50e81bd1.24b564",
"name": "Humidity",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 909.9999771118164,
"y": 541.3333168029785,
"wires":
},
{
"id": "a73a5e3d.bc501",
"type": "debug",
"z": "50e81bd1.24b564",
"name": "Temperature",
"active": true,
"console": "false",
"complete": "value",
"x": 923.4999618530273,
"y": 588.6666145324707,
"wires":
},
{
"id": "19b373f1.71440c",
"type": "debug",
"z": "50e81bd1.24b564",
"name": "Pressure",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "value",
"targetType": "msg",
"x": 915.4999618530273,
"y": 640.6666145324707,
"wires":
},
{
"id": "486d72bb.48158c",
"type": "debug",
"z": "50e81bd1.24b564",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 680,
"y": 480,
"wires":
},
{
"id": "2e169ccf.7f3f24",
"type": "split",
"z": "50e81bd1.24b564",
"name": "",
"splt": "/",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "key",
"x": 530,
"y": 520,
"wires": [
[
"486d72bb.48158c",
"541f28e6.2f6358"
]
]
},
{
"id": "496ae199.0dca3",
"type": "mqtt-broker",
"z": "",
"name": "MQTT",
"broker": "192.168.1.129",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "true",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
}
]
My initial posting contains the mqtt console output from the BME280 sensor.
Brian