iotredloop/flows/R.Salon.json
2024-05-12 10:59:07 +02:00

3304 lines
No EOL
59 KiB
JSON

[
{
"id": "e067074d6510b7f8",
"type": "tab",
"label": "R.Salon",
"disabled": false,
"info": "",
"env": []
},
{
"id": "cae3ed70c3a19a30",
"type": "group",
"z": "e067074d6510b7f8",
"name": "salon - bucket",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ffC000"
},
"nodes": [
"0a87d6e296fbe795",
"f77161cc0db67bcc",
"36ce7ba8c84903c3"
],
"x": 94,
"y": 19,
"w": 342,
"h": 82
},
{
"id": "5db3e6f241fe1fac",
"type": "group",
"z": "e067074d6510b7f8",
"name": "salon - ui select room",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true,
"stroke": "#6f2fa0"
},
"nodes": [
"019a3a8edd5faf37",
"0588224c71e286ea",
"d697151e2ef67c05",
"a9b99ed7c9b72669"
],
"x": 1054,
"y": 19,
"w": 562,
"h": 82
},
{
"id": "6d6f0afcba784d9e",
"type": "group",
"z": "e067074d6510b7f8",
"name": "",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"141e7635970308b4",
"a48e05336cc1cc06"
],
"x": 68,
"y": 233,
"w": 1314,
"h": 314
},
{
"id": "2bf0c433eb19ed82",
"type": "group",
"z": "e067074d6510b7f8",
"name": "",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"af4483b5eb251119",
"9133af06976af37d"
],
"x": 68,
"y": 593,
"w": 1534,
"h": 254
},
{
"id": "579677136736aa01",
"type": "group",
"z": "e067074d6510b7f8",
"name": "salon - alexa",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"d8bfcc7fbad989a9",
"f36d13db48680f24",
"b57e31429d877e40",
"14a357cf31812953",
"fd183971af58106f",
"13f77e42b44837fc"
],
"x": 68,
"y": 1833,
"w": 1394,
"h": 734
},
{
"id": "555137194aeca274",
"type": "group",
"z": "e067074d6510b7f8",
"name": "",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"ca6e5594c10b00d0"
],
"x": 68,
"y": 1185.5,
"w": 1174,
"h": 209
},
{
"id": "cb3c4ecc11e622c8",
"type": "group",
"z": "e067074d6510b7f8",
"name": "",
"style": {
"fill": "#777777",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"aa047eea162db86e",
"d2d3d56d19f17173"
],
"x": 68,
"y": 893,
"w": 1534,
"h": 261.5
},
{
"id": "d7fe6b32f7d450de",
"type": "group",
"z": "e067074d6510b7f8",
"name": "catch error",
"style": {
"fill": "#ff0000",
"fill-opacity": "0.05",
"label": true,
"stroke": "#ff0000"
},
"nodes": [
"8d7b277f0f787f97",
"79f750d31979bd28",
"af6e09cdd2199095"
],
"x": 534,
"y": 19,
"w": 422,
"h": 82
},
{
"id": "141e7635970308b4",
"type": "group",
"z": "e067074d6510b7f8",
"g": "6d6f0afcba784d9e",
"name": "salon - scene - lighting ceiling",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"03f7e26d1b1288fc",
"78d84c1894326c39",
"20505ee695e362db",
"31d14fe33ea1b7b2"
],
"x": 694,
"y": 319,
"w": 662,
"h": 82
},
{
"id": "a48e05336cc1cc06",
"type": "group",
"z": "e067074d6510b7f8",
"g": "6d6f0afcba784d9e",
"name": "salon - device - lighting",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"bd5525663470a457",
"d28f44d60a337af9",
"881ee38178f240b8",
"aec95b13f785534f",
"c47619a61a7f717c",
"9e57918218d94872"
],
"x": 94,
"y": 259,
"w": 502,
"h": 262
},
{
"id": "af4483b5eb251119",
"type": "group",
"z": "e067074d6510b7f8",
"g": "2bf0c433eb19ed82",
"name": "salon - device - shading",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"45ba97e1d323ea90",
"578976906b639a1f",
"92528dc3bdf6bca3",
"c43c58ceb78e8396",
"c64c9b003dc202fb"
],
"x": 94,
"y": 619,
"w": 522,
"h": 202
},
{
"id": "9133af06976af37d",
"type": "group",
"z": "e067074d6510b7f8",
"g": "2bf0c433eb19ed82",
"name": "salon - scene - shading shutter",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"c3ece85a0f147597",
"88b4e25b46ebf594",
"bc11e38a9ca782cd",
"dba923df2e5ed1bf",
"7ba75393f3b506b5",
"f2a1727027fecf49",
"e128ce4fb84c14c9"
],
"x": 714,
"y": 619,
"w": 862,
"h": 202
},
{
"id": "d8bfcc7fbad989a9",
"type": "group",
"z": "e067074d6510b7f8",
"g": "579677136736aa01",
"name": "salon - alexa - light",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"bc0564795bc5055b",
"a4a6ad066aafffab",
"2cf1c8b51221bbd5",
"175b8e4604b208a0",
"1b7fe8d3f6312441",
"6b9224991ba9932d",
"e553aecf4940374f"
],
"x": 94,
"y": 1859,
"w": 1342,
"h": 82
},
{
"id": "f36d13db48680f24",
"type": "group",
"z": "e067074d6510b7f8",
"g": "579677136736aa01",
"name": "salon - alexa - aperture - left bay",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"b22ad51c1e17a489",
"491cb8fe9bda19d7",
"d3cdfbcb73f0b397",
"32612f428f89f04b",
"2ebfdbe6c2797383"
],
"x": 94,
"y": 2099,
"w": 932,
"h": 82
},
{
"id": "b57e31429d877e40",
"type": "group",
"z": "e067074d6510b7f8",
"g": "579677136736aa01",
"name": "salon - alexa - aperture - right bay",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"54dacc2fd5d0195e",
"e1f0f157800a0cf4",
"237bf8ce3c8e7ef6",
"80423adf085377db",
"fef5a211b5cca153"
],
"x": 94,
"y": 2219,
"w": 912,
"h": 82
},
{
"id": "14a357cf31812953",
"type": "group",
"z": "e067074d6510b7f8",
"g": "579677136736aa01",
"name": "salon - alexa - shutter",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"9cab12b971634428",
"c988ea54961f1403",
"4cd46b3578c8bae0",
"d8e97b2e6b69c796",
"44cdd18cc189cc13",
"77f75b7329f5305f",
"1af788b4074a5858"
],
"x": 94,
"y": 2459,
"w": 1242,
"h": 82
},
{
"id": "fd183971af58106f",
"type": "group",
"z": "e067074d6510b7f8",
"g": "579677136736aa01",
"name": "salon - alexa - aperture - window",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"c81a8c2eb50047e0",
"ec9549e3f799c682",
"f6b933588a05f15e",
"d99cc436ba4ac06c",
"94d6e6b681750c4c"
],
"x": 94,
"y": 2339,
"w": 892,
"h": 82
},
{
"id": "13f77e42b44837fc",
"type": "group",
"z": "e067074d6510b7f8",
"g": "579677136736aa01",
"name": "salon - alexa - temperature",
"style": {
"fill": "#6f2fa0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"5782587779b166d8",
"cd91dcb74480e2bb",
"05f6965eeca20da3",
"60d2ce80fb0685cb",
"2736c226d2a4e8a9"
],
"x": 94,
"y": 1979,
"w": 952,
"h": 82
},
{
"id": "ca6e5594c10b00d0",
"type": "group",
"z": "e067074d6510b7f8",
"g": "555137194aeca274",
"name": "salon - scene - thermostat operating mode",
"style": {
"fill": "#92d04f",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"628c2e8014a8c40c",
"a05d5930c2e71184",
"553643b4e18545ba",
"0d601d3e95908328",
"f8f9a6db99bb33e8",
"9b60d0fdfcda5257",
"f4ca06eee7fc7376",
"ad5d6657510d4e95",
"2c774c7cde335304",
"7f6d6bbaadea9039"
],
"x": 94,
"y": 1211.5,
"w": 1122,
"h": 157
},
{
"id": "aa047eea162db86e",
"type": "group",
"z": "e067074d6510b7f8",
"g": "cb3c4ecc11e622c8",
"name": "salon - source - clock",
"style": {
"fill": "#0070c0",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"b0ec9dc39c0e4a04",
"6ccad4521acbf705",
"bbae4d26e41478ea",
"f1ddd31035db0cc4",
"31f89f6c208761ec",
"83cf796714185454",
"b2fc7377968a4425",
"3a7e10be0513fe02",
"ec16e55b9c303ae7"
],
"x": 714,
"y": 919,
"w": 862,
"h": 209.5
},
{
"id": "d2d3d56d19f17173",
"type": "group",
"z": "e067074d6510b7f8",
"g": "cb3c4ecc11e622c8",
"name": "salon - device - clock",
"style": {
"fill": "#ffC000",
"fill-opacity": "0.05",
"label": true
},
"nodes": [
"84add143f23bfe25",
"ad43a0610ba77d34",
"41856b3f50fd450b",
"0a20a19873de330c"
],
"x": 94,
"y": 919,
"w": 522,
"h": 142
},
{
"id": "0a87d6e296fbe795",
"type": "change",
"z": "e067074d6510b7f8",
"g": "cae3ed70c3a19a30",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "salon",
"tot": "str"
},
{
"t": "set",
"p": "bucket",
"pt": "flow",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 270,
"y": 60,
"wires": [
[
"36ce7ba8c84903c3"
]
]
},
{
"id": "f77161cc0db67bcc",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "cae3ed70c3a19a30",
"name": "salon - bucket",
"links": [
"25445f5a9b787a0a"
],
"x": 135,
"y": 60,
"wires": [
[
"0a87d6e296fbe795"
]
]
},
{
"id": "36ce7ba8c84903c3",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "cae3ed70c3a19a30",
"name": "salon - bucket",
"mode": "link",
"links": [
"2e7bb0e6e6079d56",
"41856b3f50fd450b",
"628c2e8014a8c40c",
"6d0ef0315dcfeea5",
"7cf763afc0515f46",
"881ee38178f240b8",
"8f6648f63012f412",
"92528dc3bdf6bca3",
"668589ced855b77f"
],
"x": 395,
"y": 60,
"wires": []
},
{
"id": "019a3a8edd5faf37",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "5db3e6f241fe1fac",
"name": "salon - ui select room",
"mode": "link",
"links": [
"1be6ca3c2b8615a2"
],
"x": 1575,
"y": 60,
"wires": []
},
{
"id": "0588224c71e286ea",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "5db3e6f241fe1fac",
"name": "salon - ui select room",
"links": [
"74172837e07ab80d"
],
"x": 1095,
"y": 60,
"wires": [
[
"d697151e2ef67c05"
]
]
},
{
"id": "d697151e2ef67c05",
"type": "change",
"z": "e067074d6510b7f8",
"g": "5db3e6f241fe1fac",
"name": "enabled button",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "enabled",
"pt": "msg",
"to": "msg.payload != msg.room",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1260,
"y": 60,
"wires": [
[
"a9b99ed7c9b72669"
]
]
},
{
"id": "a9b99ed7c9b72669",
"type": "ui-button",
"z": "e067074d6510b7f8",
"g": "5db3e6f241fe1fac",
"group": "36396f5285df476c",
"name": "",
"label": "Salon",
"order": 20,
"width": "2",
"height": "1",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"iconPosition": "left",
"payload": "bucket",
"payloadType": "flow",
"topic": "topic",
"topicType": "msg",
"x": 1450,
"y": 60,
"wires": [
[
"019a3a8edd5faf37"
]
]
},
{
"id": "03f7e26d1b1288fc",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "141e7635970308b4",
"name": "salon - scene - lighting ceiling",
"links": [
"031a6afd8300356a"
],
"x": 735,
"y": 360,
"wires": [
[
"20505ee695e362db"
]
]
},
{
"id": "78d84c1894326c39",
"type": "change",
"z": "e067074d6510b7f8",
"g": "141e7635970308b4",
"name": "scene lighting / ceiling / dimmer",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "scene.measurement",
"pt": "msg",
"to": "light",
"tot": "str"
},
{
"t": "set",
"p": "scene.field",
"pt": "msg",
"to": "ceiling",
"tot": "str"
},
{
"t": "set",
"p": "scene.format",
"pt": "msg",
"to": "dimmer",
"tot": "str"
},
{
"t": "set",
"p": "scene.type",
"pt": "msg",
"to": "lighting",
"tot": "str"
},
{
"t": "set",
"p": "scene.on",
"pt": "msg",
"to": "4",
"tot": "num"
},
{
"t": "set",
"p": "scene.off",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1110,
"y": 360,
"wires": [
[
"31d14fe33ea1b7b2"
]
]
},
{
"id": "20505ee695e362db",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "141e7635970308b4",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "salon/light/ceiling",
"vt": "str"
},
{
"t": "eq",
"v": "system/mode/lighting",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 870,
"y": 360,
"wires": [
[
"78d84c1894326c39"
],
[
"78d84c1894326c39"
]
]
},
{
"id": "31d14fe33ea1b7b2",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "141e7635970308b4",
"name": "salon - scene - eclairage plafonnier",
"mode": "link",
"links": [
"abdf34b12a5dd88d"
],
"x": 1315,
"y": 360,
"wires": []
},
{
"id": "bd5525663470a457",
"type": "change",
"z": "e067074d6510b7f8",
"g": "a48e05336cc1cc06",
"name": "lighting / actif / boolean / true",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "lighting",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "actif",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "boolean",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 340,
"y": 300,
"wires": [
[
"d28f44d60a337af9"
]
]
},
{
"id": "d28f44d60a337af9",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "a48e05336cc1cc06",
"name": "salon - device - lighting",
"mode": "link",
"links": [
"bfa594bf1f876c92"
],
"x": 555,
"y": 300,
"wires": []
},
{
"id": "881ee38178f240b8",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "a48e05336cc1cc06",
"name": "salon - device - lighting",
"links": [
"36ce7ba8c84903c3"
],
"x": 135,
"y": 300,
"wires": [
[
"bd5525663470a457",
"aec95b13f785534f",
"c47619a61a7f717c",
"9e57918218d94872"
]
]
},
{
"id": "aec95b13f785534f",
"type": "change",
"z": "e067074d6510b7f8",
"g": "a48e05336cc1cc06",
"name": "lighting / high / dimmer / 40",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "lighting",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "high",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "dimmer",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "40",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 340,
"y": 360,
"wires": [
[
"d28f44d60a337af9"
]
]
},
{
"id": "c47619a61a7f717c",
"type": "change",
"z": "e067074d6510b7f8",
"g": "a48e05336cc1cc06",
"name": "lighting / low / dimmer / 10",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "lighting",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "low",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "dimmer",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "10",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 420,
"wires": [
[
"d28f44d60a337af9"
]
]
},
{
"id": "9e57918218d94872",
"type": "change",
"z": "e067074d6510b7f8",
"g": "a48e05336cc1cc06",
"name": "lighting / timer / number / 60",
"rules": [
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "lighting",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "timer",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "number",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "60",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 340,
"y": 480,
"wires": [
[
"d28f44d60a337af9"
]
]
},
{
"id": "45ba97e1d323ea90",
"type": "change",
"z": "e067074d6510b7f8",
"g": "af4483b5eb251119",
"name": "shading / actif / boolean / true",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "shading",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "actif",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "boolean",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 660,
"wires": [
[
"578976906b639a1f"
]
]
},
{
"id": "578976906b639a1f",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "af4483b5eb251119",
"name": "salon - device - shading",
"mode": "link",
"links": [
"bfa594bf1f876c92"
],
"x": 575,
"y": 660,
"wires": []
},
{
"id": "92528dc3bdf6bca3",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "af4483b5eb251119",
"name": "salon - device - shading",
"links": [
"36ce7ba8c84903c3"
],
"x": 135,
"y": 660,
"wires": [
[
"45ba97e1d323ea90",
"c43c58ceb78e8396",
"c64c9b003dc202fb"
]
]
},
{
"id": "c43c58ceb78e8396",
"type": "change",
"z": "e067074d6510b7f8",
"g": "af4483b5eb251119",
"name": "shading / openwork / dimmer / 14",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "shading",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "openwork",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "dimmer",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "14",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 360,
"y": 720,
"wires": [
[
"578976906b639a1f"
]
]
},
{
"id": "c64c9b003dc202fb",
"type": "change",
"z": "e067074d6510b7f8",
"g": "af4483b5eb251119",
"name": "shading / daily / boolean / false",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "shading",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "daily",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "boolean",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 780,
"wires": [
[
"578976906b639a1f"
]
]
},
{
"id": "c3ece85a0f147597",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "trigger",
"property": "path",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "system/mode/nycthemer",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/shutter",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/right bay",
"vt": "str"
},
{
"t": "eq",
"v": "salon/aperture/left bay",
"vt": "str"
},
{
"t": "eq",
"v": "cuisine/command/remote",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 890,
"y": 720,
"wires": [
[
"7ba75393f3b506b5"
],
[
"dba923df2e5ed1bf"
],
[
"dba923df2e5ed1bf"
],
[
"dba923df2e5ed1bf"
],
[
"f2a1727027fecf49"
]
]
},
{
"id": "88b4e25b46ebf594",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "salon - scene - shading shutter",
"links": [
"031a6afd8300356a"
],
"x": 755,
"y": 720,
"wires": [
[
"c3ece85a0f147597"
]
]
},
{
"id": "bc11e38a9ca782cd",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "salon - scene - shading shutter",
"mode": "link",
"links": [
"1850a1a4ce01b83a"
],
"x": 1535,
"y": 720,
"wires": []
},
{
"id": "dba923df2e5ed1bf",
"type": "change",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1410,
"y": 720,
"wires": [
[
"bc11e38a9ca782cd"
]
]
},
{
"id": "7ba75393f3b506b5",
"type": "delay",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "45 s (bug vs jeux)",
"pauseType": "delay",
"timeout": "45",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1090,
"y": 660,
"wires": [
[
"dba923df2e5ed1bf"
]
]
},
{
"id": "f2a1727027fecf49",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "remote",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "40",
"vt": "num",
"v2": "41",
"v2t": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1060,
"y": 780,
"wires": [
[
"e128ce4fb84c14c9"
]
]
},
{
"id": "e128ce4fb84c14c9",
"type": "change",
"z": "e067074d6510b7f8",
"g": "9133af06976af37d",
"name": "payload",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "msg.payload=41",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1240,
"y": 780,
"wires": [
[
"dba923df2e5ed1bf"
]
]
},
{
"id": "bc0564795bc5055b",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "salon - alexa - light",
"mode": "link",
"links": [
"df6a69e3a774eebc"
],
"x": 1395,
"y": 1900,
"wires": []
},
{
"id": "a4a6ad066aafffab",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "salon - alexa - light",
"links": [
"abd3bb3b24dd961a"
],
"x": 135,
"y": 1900,
"wires": [
[
"2cf1c8b51221bbd5"
]
]
},
{
"id": "2cf1c8b51221bbd5",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "bucket",
"property": "bucket",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"y": 1900,
"wires": [
[
"175b8e4604b208a0"
]
]
},
{
"id": "175b8e4604b208a0",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "field",
"property": "field",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "ceiling",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 430,
"y": 1900,
"wires": [
[
"6b9224991ba9932d"
]
]
},
{
"id": "1b7fe8d3f6312441",
"type": "vsh-virtual-device",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "lumière du salon",
"topic": "salon/cible/ceiling",
"metadata": "{}",
"connection": "b156e6eff1bfadd1",
"template": "SWITCH",
"retrievable": true,
"passthrough": false,
"diff": false,
"filter": false,
"filterTopic": false,
"plan": "free",
"x": 920,
"y": 1900,
"wires": [
[
"e553aecf4940374f"
]
]
},
{
"id": "6b9224991ba9932d",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "",
"links": [
"75754d6ac1aaec7b"
],
"linkType": "static",
"timeout": "30",
"x": 660,
"y": 1900,
"wires": [
[
"1b7fe8d3f6312441"
]
]
},
{
"id": "e553aecf4940374f",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "d8bfcc7fbad989a9",
"name": "",
"links": [
"71c9fb8b232fe499"
],
"linkType": "static",
"timeout": "30",
"x": 1190,
"y": 1900,
"wires": [
[
"bc0564795bc5055b"
]
]
},
{
"id": "b22ad51c1e17a489",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "f36d13db48680f24",
"name": "salon - alexa - aperture - left bay",
"links": [
"c961c347fd2d14b5"
],
"x": 135,
"y": 2140,
"wires": [
[
"491cb8fe9bda19d7"
]
]
},
{
"id": "491cb8fe9bda19d7",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "f36d13db48680f24",
"name": "bucket",
"property": "bucket",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"y": 2140,
"wires": [
[
"d3cdfbcb73f0b397"
]
]
},
{
"id": "d3cdfbcb73f0b397",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "f36d13db48680f24",
"name": "field",
"property": "field",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "left bay",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 430,
"y": 2140,
"wires": [
[
"2ebfdbe6c2797383"
]
]
},
{
"id": "32612f428f89f04b",
"type": "vsh-virtual-device",
"z": "e067074d6510b7f8",
"g": "f36d13db48680f24",
"name": "baie gauche du salon",
"topic": "",
"metadata": "{}",
"connection": "b156e6eff1bfadd1",
"template": "CONTACT_SENSOR",
"retrievable": true,
"passthrough": false,
"diff": false,
"filter": false,
"filterTopic": false,
"plan": "free",
"x": 900,
"y": 2140,
"wires": [
[]
]
},
{
"id": "2ebfdbe6c2797383",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "f36d13db48680f24",
"name": "",
"links": [
"73c07a0bc5e5429b"
],
"linkType": "static",
"timeout": "30",
"x": 640,
"y": 2140,
"wires": [
[
"32612f428f89f04b"
]
]
},
{
"id": "54dacc2fd5d0195e",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "b57e31429d877e40",
"name": "salon - alexa - aperture - right bay",
"links": [
"c961c347fd2d14b5"
],
"x": 135,
"y": 2260,
"wires": [
[
"e1f0f157800a0cf4"
]
]
},
{
"id": "e1f0f157800a0cf4",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "b57e31429d877e40",
"name": "bucket",
"property": "bucket",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"y": 2260,
"wires": [
[
"237bf8ce3c8e7ef6"
]
]
},
{
"id": "237bf8ce3c8e7ef6",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "b57e31429d877e40",
"name": "field",
"property": "field",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "right bay",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 430,
"y": 2260,
"wires": [
[
"fef5a211b5cca153"
]
]
},
{
"id": "80423adf085377db",
"type": "vsh-virtual-device",
"z": "e067074d6510b7f8",
"g": "b57e31429d877e40",
"name": "baie droite du salon",
"topic": "",
"metadata": "{}",
"connection": "b156e6eff1bfadd1",
"template": "CONTACT_SENSOR",
"retrievable": true,
"passthrough": false,
"diff": false,
"filter": false,
"filterTopic": false,
"plan": "free",
"x": 890,
"y": 2260,
"wires": [
[]
]
},
{
"id": "fef5a211b5cca153",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "b57e31429d877e40",
"name": "",
"links": [
"73c07a0bc5e5429b"
],
"linkType": "static",
"timeout": "30",
"x": 640,
"y": 2260,
"wires": [
[
"80423adf085377db"
]
]
},
{
"id": "9cab12b971634428",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "salon - alexa - shutter",
"mode": "link",
"links": [
"df6a69e3a774eebc"
],
"x": 1295,
"y": 2500,
"wires": []
},
{
"id": "c988ea54961f1403",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "salon - alexa - shutter",
"links": [
"340d0829b2817429"
],
"x": 135,
"y": 2500,
"wires": [
[
"4cd46b3578c8bae0"
]
]
},
{
"id": "4cd46b3578c8bae0",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "bucket",
"property": "bucket",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"y": 2500,
"wires": [
[
"d8e97b2e6b69c796"
]
]
},
{
"id": "d8e97b2e6b69c796",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "field",
"property": "field",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "shutter",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 430,
"y": 2500,
"wires": [
[
"77f75b7329f5305f"
]
]
},
{
"id": "44cdd18cc189cc13",
"type": "vsh-virtual-device",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "volet du salon",
"topic": "salon/cible/shutter",
"metadata": "{}",
"connection": "b156e6eff1bfadd1",
"template": "BLINDS",
"retrievable": true,
"passthrough": false,
"diff": false,
"filter": false,
"filterTopic": false,
"plan": "free",
"x": 880,
"y": 2500,
"wires": [
[
"1af788b4074a5858"
]
]
},
{
"id": "77f75b7329f5305f",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "",
"links": [
"86f02da7eff1e3ba"
],
"linkType": "static",
"timeout": "30",
"x": 640,
"y": 2500,
"wires": [
[
"44cdd18cc189cc13"
]
]
},
{
"id": "1af788b4074a5858",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "14a357cf31812953",
"name": "",
"links": [
"7af8e11321061713"
],
"linkType": "static",
"timeout": "30",
"x": 1120,
"y": 2500,
"wires": [
[
"9cab12b971634428"
]
]
},
{
"id": "c81a8c2eb50047e0",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "fd183971af58106f",
"name": "salon - alexa - aperture - window",
"links": [
"c961c347fd2d14b5"
],
"x": 135,
"y": 2380,
"wires": [
[
"ec9549e3f799c682"
]
]
},
{
"id": "ec9549e3f799c682",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "fd183971af58106f",
"name": "bucket",
"property": "bucket",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"y": 2380,
"wires": [
[
"f6b933588a05f15e"
]
]
},
{
"id": "f6b933588a05f15e",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "fd183971af58106f",
"name": "field",
"property": "field",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "window",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 430,
"y": 2380,
"wires": [
[
"94d6e6b681750c4c"
]
]
},
{
"id": "d99cc436ba4ac06c",
"type": "vsh-virtual-device",
"z": "e067074d6510b7f8",
"g": "fd183971af58106f",
"name": "fenêtre du salon",
"topic": "",
"metadata": "{}",
"connection": "b156e6eff1bfadd1",
"template": "CONTACT_SENSOR",
"retrievable": true,
"passthrough": false,
"diff": false,
"filter": false,
"filterTopic": false,
"plan": "free",
"x": 880,
"y": 2380,
"wires": [
[]
]
},
{
"id": "94d6e6b681750c4c",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "fd183971af58106f",
"name": "",
"links": [
"73c07a0bc5e5429b"
],
"linkType": "static",
"timeout": "30",
"x": 640,
"y": 2380,
"wires": [
[
"d99cc436ba4ac06c"
]
]
},
{
"id": "5782587779b166d8",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "13f77e42b44837fc",
"name": "salon - alexa - temperature",
"links": [
"a66c6d1f8e271921"
],
"x": 135,
"y": 2020,
"wires": [
[
"cd91dcb74480e2bb"
]
]
},
{
"id": "cd91dcb74480e2bb",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "13f77e42b44837fc",
"name": "bucket",
"property": "bucket",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bucket",
"vt": "flow"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 270,
"y": 2020,
"wires": [
[
"60d2ce80fb0685cb"
]
]
},
{
"id": "05f6965eeca20da3",
"type": "link call",
"z": "e067074d6510b7f8",
"g": "13f77e42b44837fc",
"name": "",
"links": [
"50c950cddc1506ed"
],
"linkType": "static",
"timeout": "30",
"x": 650,
"y": 2020,
"wires": [
[
"2736c226d2a4e8a9"
]
]
},
{
"id": "60d2ce80fb0685cb",
"type": "change",
"z": "e067074d6510b7f8",
"g": "13f77e42b44837fc",
"name": "scene",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 2020,
"wires": [
[
"05f6965eeca20da3"
]
]
},
{
"id": "2736c226d2a4e8a9",
"type": "vsh-virtual-device",
"z": "e067074d6510b7f8",
"g": "13f77e42b44837fc",
"name": "température du salon",
"topic": "",
"metadata": "{}",
"connection": "b156e6eff1bfadd1",
"template": "TEMPERATURE_SENSOR",
"retrievable": true,
"passthrough": false,
"diff": false,
"filter": false,
"filterTopic": false,
"plan": "free",
"x": 920,
"y": 2020,
"wires": [
[]
]
},
{
"id": "628c2e8014a8c40c",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "salon - scene - thermostat operating mode",
"links": [
"36ce7ba8c84903c3"
],
"x": 135,
"y": 1260,
"wires": [
[
"0d601d3e95908328"
]
]
},
{
"id": "a05d5930c2e71184",
"type": "change",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "sync",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "sync",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 1260,
"wires": [
[
"553643b4e18545ba",
"9b60d0fdfcda5257"
]
]
},
{
"id": "553643b4e18545ba",
"type": "bigtimer",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"outtopic": "",
"outpayload1": "",
"outpayload2": "",
"name": "confort schedule (rest)",
"comment": "",
"lat": 0,
"lon": 0,
"starttime": "480",
"endtime": "1380",
"starttime2": "0",
"endtime2": "0",
"startoff": 0,
"endoff": 0,
"startoff2": 0,
"endoff2": 0,
"offs": 0,
"outtext1": "",
"outtext2": "",
"timeout": 1440,
"sun": true,
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"jan": true,
"feb": true,
"mar": true,
"apr": true,
"may": true,
"jun": true,
"jul": true,
"aug": true,
"sep": true,
"oct": true,
"nov": true,
"dec": true,
"day1": 0,
"month1": 0,
"day2": 0,
"month2": 0,
"day3": 0,
"month3": 0,
"day4": 0,
"month4": 0,
"day5": 0,
"month5": 0,
"day6": 0,
"month6": 0,
"day7": 0,
"month7": 0,
"day8": 0,
"month8": 0,
"day9": 0,
"month9": 0,
"day10": 0,
"month10": 0,
"day11": 0,
"month11": 0,
"day12": 0,
"month12": 0,
"d1": 0,
"w1": 0,
"d2": 0,
"w2": 0,
"d3": 0,
"w3": 0,
"d4": 0,
"w4": 0,
"d5": 0,
"w5": 0,
"d6": 0,
"w6": 0,
"xday1": 0,
"xmonth1": 0,
"xday2": 0,
"xmonth2": 0,
"xday3": 0,
"xmonth3": 0,
"xday4": 0,
"xmonth4": 0,
"xday5": 0,
"xmonth5": 0,
"xday6": 0,
"xmonth6": 0,
"xday7": 0,
"xmonth7": 0,
"xday8": 0,
"xmonth8": 0,
"xday9": 0,
"xmonth9": 0,
"xday10": 0,
"xmonth10": 0,
"xday11": 0,
"xmonth11": 0,
"xday12": 0,
"xmonth12": 0,
"xd1": 0,
"xw1": 0,
"xd2": 0,
"xw2": 0,
"xd3": 0,
"xw3": 0,
"xd4": 0,
"xw4": 0,
"xd5": 0,
"xw5": 0,
"xd6": 0,
"xw6": 0,
"suspend": false,
"random": false,
"randon1": false,
"randoff1": false,
"randon2": false,
"randoff2": false,
"repeat": true,
"atstart": false,
"odd": false,
"even": false,
"x": 640,
"y": 1320,
"wires": [
[],
[
"7f6d6bbaadea9039"
],
[]
]
},
{
"id": "0d601d3e95908328",
"type": "delay",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "5 s",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 270,
"y": 1260,
"wires": [
[
"a05d5930c2e71184"
]
]
},
{
"id": "f8f9a6db99bb33e8",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "salon - scene - thermostat operating mode",
"mode": "link",
"links": [
"d1c7f4810b12afe2"
],
"x": 1175,
"y": 1260,
"wires": []
},
{
"id": "9b60d0fdfcda5257",
"type": "bigtimer",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"outtopic": "",
"outpayload1": "",
"outpayload2": "",
"name": "confort schedule (work)",
"comment": "",
"lat": 0,
"lon": 0,
"starttime": "1020",
"endtime": "1320",
"starttime2": "0",
"endtime2": "0",
"startoff": 0,
"endoff": 0,
"startoff2": 0,
"endoff2": 0,
"offs": 0,
"outtext1": "",
"outtext2": "",
"timeout": 1440,
"sun": true,
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"jan": true,
"feb": true,
"mar": true,
"apr": true,
"may": true,
"jun": true,
"jul": true,
"aug": true,
"sep": true,
"oct": true,
"nov": true,
"dec": true,
"day1": 0,
"month1": 0,
"day2": 0,
"month2": 0,
"day3": 0,
"month3": 0,
"day4": 0,
"month4": 0,
"day5": 0,
"month5": 0,
"day6": 0,
"month6": 0,
"day7": 0,
"month7": 0,
"day8": 0,
"month8": 0,
"day9": 0,
"month9": 0,
"day10": 0,
"month10": 0,
"day11": 0,
"month11": 0,
"day12": 0,
"month12": 0,
"d1": 0,
"w1": 0,
"d2": 0,
"w2": 0,
"d3": 0,
"w3": 0,
"d4": 0,
"w4": 0,
"d5": 0,
"w5": 0,
"d6": 0,
"w6": 0,
"xday1": 0,
"xmonth1": 0,
"xday2": 0,
"xmonth2": 0,
"xday3": 0,
"xmonth3": 0,
"xday4": 0,
"xmonth4": 0,
"xday5": 0,
"xmonth5": 0,
"xday6": 0,
"xmonth6": 0,
"xday7": 0,
"xmonth7": 0,
"xday8": 0,
"xmonth8": 0,
"xday9": 0,
"xmonth9": 0,
"xday10": 0,
"xmonth10": 0,
"xday11": 0,
"xmonth11": 0,
"xday12": 0,
"xmonth12": 0,
"xd1": 0,
"xw1": 0,
"xd2": 0,
"xw2": 0,
"xd3": 0,
"xw3": 0,
"xd4": 0,
"xw4": 0,
"xd5": 0,
"xw5": 0,
"xd6": 0,
"xw6": 0,
"suspend": false,
"random": false,
"randon1": false,
"randoff1": false,
"randon2": false,
"randoff2": false,
"repeat": true,
"atstart": false,
"odd": false,
"even": false,
"x": 650,
"y": 1260,
"wires": [
[],
[
"f4ca06eee7fc7376"
],
[]
]
},
{
"id": "f4ca06eee7fc7376",
"type": "change",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "jour",
"pt": "msg",
"to": "metrics[msg.scene.bucket]horloge['jour de travail']",
"tot": "global"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 870,
"y": 1260,
"wires": [
[
"ad5d6657510d4e95"
]
]
},
{
"id": "ad5d6657510d4e95",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "work day",
"property": "metrics[msg.scene.bucket]clock['work day']",
"propertyType": "global",
"rules": [
{
"t": "true"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1040,
"y": 1260,
"wires": [
[
"f8f9a6db99bb33e8"
]
]
},
{
"id": "2c774c7cde335304",
"type": "switch",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "rest day",
"property": "metrics[msg.scene.bucket]clock['work day']",
"propertyType": "global",
"rules": [
{
"t": "false"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 1020,
"y": 1320,
"wires": [
[
"f8f9a6db99bb33e8"
]
]
},
{
"id": "7f6d6bbaadea9039",
"type": "change",
"z": "e067074d6510b7f8",
"g": "ca6e5594c10b00d0",
"name": "bucket",
"rules": [
{
"t": "set",
"p": "scene.bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 850,
"y": 1320,
"wires": [
[
"2c774c7cde335304"
]
]
},
{
"id": "b0ec9dc39c0e4a04",
"type": "bigtimer",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"outtopic": "",
"outpayload1": "1",
"outpayload2": "0",
"name": "work day",
"comment": "",
"lat": "45.9388",
"lon": "5.3808",
"starttime": "0",
"endtime": "1439",
"starttime2": "0",
"endtime2": "0",
"startoff": "0",
"endoff": "0",
"startoff2": 0,
"endoff2": 0,
"offs": "0",
"outtext1": "",
"outtext2": "",
"timeout": "1440",
"sun": false,
"mon": true,
"tue": true,
"wed": false,
"thu": true,
"fri": true,
"sat": false,
"jan": true,
"feb": true,
"mar": true,
"apr": true,
"may": true,
"jun": true,
"jul": false,
"aug": false,
"sep": true,
"oct": true,
"nov": true,
"dec": true,
"day1": 0,
"month1": 0,
"day2": 0,
"month2": 0,
"day3": 0,
"month3": 0,
"day4": 0,
"month4": 0,
"day5": 0,
"month5": 0,
"day6": 0,
"month6": 0,
"day7": 0,
"month7": 0,
"day8": 0,
"month8": 0,
"day9": 0,
"month9": 0,
"day10": 0,
"month10": 0,
"day11": 0,
"month11": 0,
"day12": 0,
"month12": 0,
"d1": 0,
"w1": 0,
"d2": 0,
"w2": 0,
"d3": 0,
"w3": 0,
"d4": 0,
"w4": 0,
"d5": 0,
"w5": 0,
"d6": 0,
"w6": 0,
"xday1": 0,
"xmonth1": 0,
"xday2": 0,
"xmonth2": 0,
"xday3": 0,
"xmonth3": 0,
"xday4": 0,
"xmonth4": 0,
"xday5": 0,
"xmonth5": 0,
"xday6": 0,
"xmonth6": 0,
"xday7": 0,
"xmonth7": 0,
"xday8": 0,
"xmonth8": 0,
"xday9": 0,
"xmonth9": 0,
"xday10": 0,
"xmonth10": 0,
"xday11": 0,
"xmonth11": 0,
"xday12": 0,
"xmonth12": 0,
"xd1": 0,
"xw1": 0,
"xd2": 0,
"xw2": 0,
"xd3": 0,
"xw3": 0,
"xd4": 0,
"xw4": 0,
"xd5": 0,
"xw5": 0,
"xd6": 0,
"xw6": 0,
"suspend": false,
"random": false,
"randon1": false,
"randoff1": false,
"randon2": false,
"randoff2": false,
"repeat": false,
"atstart": true,
"odd": false,
"even": false,
"x": 1240,
"y": 1020,
"wires": [
[
"6ccad4521acbf705"
],
[],
[]
]
},
{
"id": "6ccad4521acbf705",
"type": "change",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "clock",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "work day",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$boolean(msg.payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1410,
"y": 1020,
"wires": [
[
"bbae4d26e41478ea"
]
]
},
{
"id": "bbae4d26e41478ea",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "salon - source - clock",
"mode": "link",
"links": [
"206c1fb4a48067df"
],
"x": 1535,
"y": 1020,
"wires": []
},
{
"id": "f1ddd31035db0cc4",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "salon - source - clock",
"links": [
"074a67bf0fcf09ad"
],
"x": 755,
"y": 960,
"wires": [
[
"31f89f6c208761ec",
"83cf796714185454"
]
]
},
{
"id": "31f89f6c208761ec",
"type": "change",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "0",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1250,
"y": 960,
"wires": [
[
"6ccad4521acbf705",
"3a7e10be0513fe02"
]
]
},
{
"id": "83cf796714185454",
"type": "delay",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "250 ms",
"pauseType": "delay",
"timeout": "250",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 900,
"y": 1020,
"wires": [
[
"ec16e55b9c303ae7"
]
]
},
{
"id": "b2fc7377968a4425",
"type": "bigtimer",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"outtopic": "",
"outpayload1": "1",
"outpayload2": "0",
"name": "work eve",
"comment": "",
"lat": "45.9388",
"lon": "5.3808",
"starttime": "0",
"endtime": "1439",
"starttime2": "0",
"endtime2": "0",
"startoff": "0",
"endoff": "0",
"startoff2": 0,
"endoff2": 0,
"offs": "0",
"outtext1": "",
"outtext2": "",
"timeout": "1440",
"sun": true,
"mon": true,
"tue": false,
"wed": true,
"thu": true,
"fri": false,
"sat": false,
"jan": true,
"feb": true,
"mar": true,
"apr": true,
"may": true,
"jun": true,
"jul": false,
"aug": false,
"sep": true,
"oct": true,
"nov": true,
"dec": true,
"day1": 0,
"month1": 0,
"day2": 0,
"month2": 0,
"day3": 0,
"month3": 0,
"day4": 0,
"month4": 0,
"day5": 0,
"month5": 0,
"day6": 0,
"month6": 0,
"day7": 0,
"month7": 0,
"day8": 0,
"month8": 0,
"day9": 0,
"month9": 0,
"day10": 0,
"month10": 0,
"day11": 0,
"month11": 0,
"day12": 0,
"month12": 0,
"d1": 0,
"w1": 0,
"d2": 0,
"w2": 0,
"d3": 0,
"w3": 0,
"d4": 0,
"w4": 0,
"d5": 0,
"w5": 0,
"d6": 0,
"w6": 0,
"xday1": 0,
"xmonth1": 0,
"xday2": 0,
"xmonth2": 0,
"xday3": 0,
"xmonth3": 0,
"xday4": 0,
"xmonth4": 0,
"xday5": 0,
"xmonth5": 0,
"xday6": 0,
"xmonth6": 0,
"xday7": 0,
"xmonth7": 0,
"xday8": 0,
"xmonth8": 0,
"xday9": 0,
"xmonth9": 0,
"xday10": 0,
"xmonth10": 0,
"xday11": 0,
"xmonth11": 0,
"xday12": 0,
"xmonth12": 0,
"xd1": 0,
"xw1": 0,
"xd2": 0,
"xw2": 0,
"xd3": 0,
"xw3": 0,
"xd4": 0,
"xw4": 0,
"xd5": 0,
"xw5": 0,
"xd6": 0,
"xw6": 0,
"suspend": false,
"random": false,
"randon1": false,
"randoff1": false,
"randon2": false,
"randoff2": false,
"repeat": false,
"atstart": true,
"odd": false,
"even": false,
"x": 1240,
"y": 1080,
"wires": [
[
"3a7e10be0513fe02"
],
[],
[]
]
},
{
"id": "3a7e10be0513fe02",
"type": "change",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "metric",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "clock",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "work eve",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$boolean(msg.payload)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1410,
"y": 1080,
"wires": [
[
"bbae4d26e41478ea"
]
]
},
{
"id": "ec16e55b9c303ae7",
"type": "change",
"z": "e067074d6510b7f8",
"g": "aa047eea162db86e",
"name": "sync",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "sync",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 1020,
"wires": [
[
"b0ec9dc39c0e4a04",
"b2fc7377968a4425"
]
]
},
{
"id": "84add143f23bfe25",
"type": "change",
"z": "e067074d6510b7f8",
"g": "d2d3d56d19f17173",
"name": "clock / work day / boolean / false",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "clock",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "work day",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "boolean",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 960,
"wires": [
[
"ad43a0610ba77d34"
]
]
},
{
"id": "ad43a0610ba77d34",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "d2d3d56d19f17173",
"name": "salon - device - clock",
"mode": "link",
"links": [
"bfa594bf1f876c92"
],
"x": 575,
"y": 960,
"wires": []
},
{
"id": "41856b3f50fd450b",
"type": "link in",
"z": "e067074d6510b7f8",
"g": "d2d3d56d19f17173",
"name": "salon - device - clock",
"links": [
"36ce7ba8c84903c3"
],
"x": 135,
"y": 960,
"wires": [
[
"84add143f23bfe25",
"0a20a19873de330c"
]
]
},
{
"id": "0a20a19873de330c",
"type": "change",
"z": "e067074d6510b7f8",
"g": "d2d3d56d19f17173",
"name": "clock/ work eve / boolean / false",
"rules": [
{
"t": "set",
"p": "bucket",
"pt": "msg",
"to": "bucket",
"tot": "flow"
},
{
"t": "set",
"p": "measurement",
"pt": "msg",
"to": "clock",
"tot": "str"
},
{
"t": "set",
"p": "field",
"pt": "msg",
"to": "work eve",
"tot": "str"
},
{
"t": "set",
"p": "format",
"pt": "msg",
"to": "boolean",
"tot": "str"
},
{
"t": "set",
"p": "default",
"pt": "msg",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 1020,
"wires": [
[
"ad43a0610ba77d34"
]
]
},
{
"id": "8d7b277f0f787f97",
"type": "catch",
"z": "e067074d6510b7f8",
"g": "d7fe6b32f7d450de",
"name": "catch error",
"scope": null,
"uncaught": false,
"x": 620,
"y": 60,
"wires": [
[
"79f750d31979bd28"
]
]
},
{
"id": "79f750d31979bd28",
"type": "change",
"z": "e067074d6510b7f8",
"g": "d7fe6b32f7d450de",
"name": "topic",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "salon",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 790,
"y": 60,
"wires": [
[
"af6e09cdd2199095"
]
]
},
{
"id": "af6e09cdd2199095",
"type": "link out",
"z": "e067074d6510b7f8",
"g": "d7fe6b32f7d450de",
"name": "catch error",
"mode": "link",
"links": [
"a52f0e788cd4dca3"
],
"x": 915,
"y": 60,
"wires": []
}
]