Sorry but the machine had already been shutdown. For "jbudd" , I have run those tests before several times as they are part of the course where this came from. They are run twice, for each method, with or without credentials and they both passed each time. And this also involved the change in the "allow_anonymous true/false argument.
For Colin here is the code
[
{
"id": "689a8ea47644053d",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "b6155752bb50aee3",
"type": "inject",
"z": "689a8ea47644053d",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "on",
"payloadType": "str",
"x": 90,
"y": 40,
"wires": [
[
"9a39b2806f7222a9"
]
]
},
{
"id": "1bb338149dbb5a45",
"type": "inject",
"z": "689a8ea47644053d",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "off",
"payloadType": "str",
"x": 90,
"y": 80,
"wires": [
[
"9a39b2806f7222a9"
]
]
},
{
"id": "9a39b2806f7222a9",
"type": "ui_switch",
"z": "689a8ea47644053d",
"name": "",
"label": "hot water switch",
"tooltip": "",
"group": "59214996.9e7fa8",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "on",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "off",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"animate": false,
"className": "",
"x": 260,
"y": 40,
"wires": [
[
"e3c33b8cea1044d3"
]
]
},
{
"id": "e3c33b8cea1044d3",
"type": "mqtt out",
"z": "689a8ea47644053d",
"name": "",
"topic": "home/office/4004_05",
"qos": "0",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "db9e6b85.5d9138",
"x": 300,
"y": 100,
"wires": []
},
{
"id": "0c901105ef2f5220",
"type": "mqtt in",
"z": "689a8ea47644053d",
"name": "home/office/4004_05/state",
"topic": "home/office/4004_05/state",
"qos": "0",
"datatype": "utf8",
"broker": "db9e6b85.5d9138",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 510,
"y": 40,
"wires": [
[
"13c8d3adde1bdcc5",
"55c3de60066c6f24"
]
]
},
{
"id": "55c3de60066c6f24",
"type": "debug",
"z": "689a8ea47644053d",
"name": "payload",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 140,
"wires": []
},
{
"id": "13c8d3adde1bdcc5",
"type": "ui_text",
"z": "689a8ea47644053d",
"group": "59214996.9e7fa8",
"order": 3,
"width": 0,
"height": 0,
"name": "hot water 05",
"label": "hot water 05",
"format": "{{msg.payload}}",
"layout": "row-left",
"className": "",
"style": false,
"font": "",
"fontSize": 16,
"color": "#000000",
"x": 650,
"y": 100,
"wires": []
},
{
"id": "617096ee77322e1f",
"type": "inject",
"z": "689a8ea47644053d",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 180,
"y": 200,
"wires": [
[
"dc65bce4f64b4193"
]
]
},
{
"id": "dc65bce4f64b4193",
"type": "mqtt out",
"z": "689a8ea47644053d",
"name": "test1",
"topic": "test1",
"qos": "0",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "db9e6b85.5d9138",
"x": 310,
"y": 200,
"wires": []
},
{
"id": "5a742421a7d6bf20",
"type": "mqtt in",
"z": "689a8ea47644053d",
"name": "",
"topic": "test1",
"qos": "0",
"datatype": "auto-detect",
"broker": "db9e6b85.5d9138",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 430,
"y": 200,
"wires": [
[
"b577b09cb827cefc"
]
]
},
{
"id": "b577b09cb827cefc",
"type": "debug",
"z": "689a8ea47644053d",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 200,
"wires": []
},
{
"id": "59214996.9e7fa8",
"type": "ui_group",
"name": "4004",
"tab": "4c1cfcd6.cb35c4",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "db9e6b85.5d9138",
"type": "mqtt-broker",
"name": "home/office/4004_05",
"broker": "localhost",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "4c1cfcd6.cb35c4",
"type": "ui_tab",
"name": "HOME",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "f4cd884f4e9b85e2",
"type": "global-config",
"env": [],
"modules": {
"node-red-dashboard": "3.6.6"
}
}
]
Back to work on the rebuild