[
{
"id": "f0ac0509.873a58",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": ""
},
{
"id": "9baec7d0.2429d8",
"type": "mqtt-broker",
"z": "",
"name": "雷士云",
"broker": "www.xlinyun.com",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
},
{
"id": "926435db.04fad8",
"type": "mqtt-broker",
"z": "",
"name": "homeassistant",
"broker": "127.0.0.1",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
},
{
"id": "726fbace.67be94",
"type": "mqtt in",
"z": "f0ac0509.873a58",
"name": "监听雷士云信息输入",
"topic": "uuid/out",####这里填写你的uuid
"qos": "0",
"datatype": "auto",
"broker": "9baec7d0.2429d8",
"x": 130,
"y": 120,
"wires": [
[
"522d9d1b.98cbd4",
"4c5a013a.d2416"
]
]
},
{
"id": "522d9d1b.98cbd4",
"type": "debug",
"z": "f0ac0509.873a58",
"name": "云端监听信息",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 460,
"y": 80,
"wires": []
},
{
"id": "ec2249c7.c6f008",
"type": "mqtt in",
"z": "f0ac0509.873a58",
"name": "ha输入",
"topic": "uuid/userin",####填写自己的uuid
"qos": "0",
"datatype": "utf8",
"broker": "926435db.04fad8",
"x": 130,
"y": 400,
"wires": [
[
"b1b2ebd2.d95478",
"5a8a426f.567e1c"
]
]
},
{
"id": "b1b2ebd2.d95478",
"type": "debug",
"z": "f0ac0509.873a58",
"name": "ha发送信息",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 450,
"y": 320,
"wires": []
},
{
"id": "4c5a013a.d2416",
"type": "change",
"z": "f0ac0509.873a58",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 2216,"wwhite": 5171",
"fromt": "re",
"to": "春季",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 7387,"wwhite": 0",
"fromt": "str",
"to": "夏季",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 5171,"wwhite": 2216",
"fromt": "str",
"to": "秋季",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 820,"wwhite": 7371",
"fromt": "str",
"to": "冬季",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 8191,"wwhite": 0",
"fromt": "str",
"to": "明亮",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 2859,"wwhite": 2858",
"fromt": "str",
"to": "温馨",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 60,"wwhite": 60",
"fromt": "str",
"to": "辅光",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 4096,"wwhite": 4095",
"fromt": "str",
"to": "on",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""cwhite": 0,"wwhite": 0",
"fromt": "str",
"to": "off",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": ""uuid": "6601-04164371-2c3ae83f8b13-8",",
"fromt": "re",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "fw|[0-9]",
"fromt": "re",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "mode|[0-9]",
"fromt": "re",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "{|}",
"fromt": "re",
"to": "",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "rgb|red|green|blue|“|"|-|,|:",
"fromt": "re",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 460,
"y": 220,
"wires": [
[
"4ede1b66.135874",
"81977f7d.d00b4"
]
]
},
{
"id": "5a8a426f.567e1c",
"type": "change",
"z": "f0ac0509.873a58",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "春季",
"fromt": "str",
"to": " {"cwhite": 2216,"wwhite": 5171}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "夏季",
"fromt": "str",
"to": "{"cwhite": 7387,"wwhite": 0}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "秋季",
"fromt": "str",
"to": "{"cwhite": 5171,"wwhite": 2216}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "冬季",
"fromt": "str",
"to": "{"cwhite": 820,"wwhite": 7371}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "明亮",
"fromt": "str",
"to": "{"cwhite": 8191,"wwhite": 0}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "温馨",
"fromt": "str",
"to": "{"cwhite": 2859,"wwhite": 2858}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "辅光",
"fromt": "str",
"to": "{"cwhite": 60,"wwhite": 60}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "{"cwhite": 0,"wwhite": 0}",
"tot": "str"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "{"cwhite": 4096,"wwhite": 4095}",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 460,
"y": 500,
"wires": [
[
"b8903514.c0db48",
"51ab6c60.d92664"
]
]
},
{
"id": "b8903514.c0db48",
"type": "mqtt out",
"z": "f0ac0509.873a58",
"name": "转发雷士云",
"topic": "uuid/userin",####替换uuid
"qos": "0",
"retain": "false",
"broker": "9baec7d0.2429d8",
"x": 710,
"y": 420,
"wires": []
},
{
"id": "4ede1b66.135874",
"type": "mqtt out",
"z": "f0ac0509.873a58",
"name": "homeassistant监听",
"topic": "####替换uuid/out",
"qos": "0",
"retain": "false",
"broker": "926435db.04fad8",
"x": 910,
"y": 120,
"wires": []
},
{
"id": "81977f7d.d00b4",
"type": "debug",
"z": "f0ac0509.873a58",
"name": "云端修改规则监听",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 910,
"y": 240,
"wires": []
},
{
"id": "51ab6c60.d92664",
"type": "debug",
"z": "f0ac0509.873a58",
"name": "ha修改规则监听",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 700,
"y": 580,
"wires": []
}
]