C’est pas faute de l’avoir dit ![]()
Et si tu veux lundi et jeudi, c’est MON,THU
TUE c’est mardi.
C’est pas faute de l’avoir dit ![]()
Et si tu veux lundi et jeudi, c’est MON,THU
TUE c’est mardi.
C’est vrai
Oui c’était juste pour l’essaie que j’ai mis MON,THU
Merci
Encore une question si je veux ajouter le calendrier scolaire dans ma scène pour que mes volets ne s’ouvre pas pendant les congés je dois passer par quel cron? French holidays?
encore une question
je veux que ma prise s’éteint a 23:30 semaine et 00:30 le weekend j’ai rajouter dans Cron plus.
Mais ce n’ai pas l’idéal car si je rentre après les 23:30 ma prise se rallume vu que je suis présent.
[
{
"id": "1499142c4ba57606",
"type": "tab",
"label": "Presence prise ok",
"disabled": false,
"info": "",
"env": []
},
{
"id": "d1e6942b7026f667",
"type": "api-call-service",
"z": "1499142c4ba57606",
"name": "Prise Off",
"server": "443ff1c5.63d78",
"version": 5,
"debugenabled": false,
"domain": "switch",
"service": "turn_off",
"areaId": [],
"deviceId": [
"80fe7166269f02d154eccc43b50ca0e2"
],
"entityId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 840,
"y": 160,
"wires": [
[
"d87772cd146d522e"
]
]
},
{
"id": "1cbd4bf5e50d9fb7",
"type": "api-call-service",
"z": "1499142c4ba57606",
"name": "Prise On",
"server": "443ff1c5.63d78",
"version": 5,
"debugenabled": false,
"domain": "switch",
"service": "turn_on",
"areaId": [],
"deviceId": [
"80fe7166269f02d154eccc43b50ca0e2"
],
"entityId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 800,
"y": 300,
"wires": [
[
"3323668de0c77651"
]
]
},
{
"id": "d87772cd146d522e",
"type": "debug",
"z": "1499142c4ba57606",
"name": "Prise eteind",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1130,
"y": 160,
"wires": []
},
{
"id": "3323668de0c77651",
"type": "debug",
"z": "1499142c4ba57606",
"name": "Prise allumée",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1040,
"y": 300,
"wires": []
},
{
"id": "e4d6e752c19f921a",
"type": "server-state-changed",
"z": "1499142c4ba57606",
"name": "Presence de personnes",
"server": "443ff1c5.63d78",
"version": 4,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "zone.home",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "0",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"for": "0",
"forType": "num",
"forUnits": "seconds",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 230,
"y": 260,
"wires": [
[
"d1e6942b7026f667"
],
[
"1cbd4bf5e50d9fb7"
]
]
},
{
"id": "c26934b812805fac",
"type": "cronplus",
"z": "1499142c4ba57606",
"name": "Allumer Lundi, Mardi et jeudi 7h",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 7 * * MON,TUE,THU *",
"location": "47.579941667607216, 7.516464649107559",
"offset": "0",
"solarType": "selected",
"solarEvents": "nauticalDusk"
}
],
"x": 310,
"y": 360,
"wires": [
[
"1cbd4bf5e50d9fb7"
]
]
},
{
"id": "281f994e154b931b",
"type": "cronplus",
"z": "1499142c4ba57606",
"name": "Eteindre Lundi, Mardi et jeudi 8h et semaine 23h30 et week end 0h45",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 8 * * MON,TUE,THU *",
"location": "47.579941667607216, 7.516464649107559",
"offset": "0",
"solarType": "selected",
"solarEvents": "nauticalDusk"
},
{
"name": "schedule2",
"topic": "topic2",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 30 23 * * SUN-THU *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
},
{
"name": "schedule3",
"topic": "topic3",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 45 0 * * SAT-SUN *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
}
],
"x": 430,
"y": 160,
"wires": [
[
"d1e6942b7026f667"
]
]
},
{
"id": "443ff1c5.63d78",
"type": "server",
"name": "Home Assistant",
"version": 5,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": false,
"heartbeatInterval": 30,
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": "at: ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "h23",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": true
}
]
Ça ne fonctionne pas non plus je dois utiliser un et si?
c’est au moins possible de le faire?
[
{
"id": "93d58ff8d86edd71",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "507458bd819620e6",
"type": "api-call-service",
"z": "93d58ff8d86edd71",
"name": "Prise Off",
"server": "443ff1c5.63d78",
"version": 5,
"debugenabled": false,
"domain": "switch",
"service": "turn_off",
"areaId": [],
"deviceId": [
"80fe7166269f02d154eccc43b50ca0e2"
],
"entityId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 580,
"y": 160,
"wires": [
[
"3e31df0d0a89d1ec"
]
]
},
{
"id": "50708399e0228388",
"type": "api-call-service",
"z": "93d58ff8d86edd71",
"name": "Prise On",
"server": "443ff1c5.63d78",
"version": 5,
"debugenabled": false,
"domain": "switch",
"service": "turn_on",
"areaId": [],
"deviceId": [
"80fe7166269f02d154eccc43b50ca0e2"
],
"entityId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 580,
"y": 360,
"wires": [
[
"61da26555404ce80"
]
]
},
{
"id": "cafb651b73a669d9",
"type": "debug",
"z": "93d58ff8d86edd71",
"name": "Prise eteind",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1410,
"y": 220,
"wires": []
},
{
"id": "a4ed2d5b3464874e",
"type": "debug",
"z": "93d58ff8d86edd71",
"name": "Prise allumée",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1480,
"y": 360,
"wires": []
},
{
"id": "753de1dab3f15780",
"type": "server-state-changed",
"z": "93d58ff8d86edd71",
"name": "Presence de personnes",
"server": "443ff1c5.63d78",
"version": 4,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "zone.home",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "0",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"for": "0",
"forType": "num",
"forUnits": "seconds",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 310,
"y": 320,
"wires": [
[
"507458bd819620e6"
],
[
"50708399e0228388"
]
]
},
{
"id": "61da26555404ce80",
"type": "cronplus",
"z": "93d58ff8d86edd71",
"name": "Allumer Lundi, Mardi et jeudi 7h",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 7 * * MON,TUE,THU *",
"location": "47.579941667607216, 7.516464649107559",
"offset": "0",
"solarType": "selected",
"solarEvents": "nauticalDusk"
}
],
"x": 1010,
"y": 360,
"wires": [
[
"a4ed2d5b3464874e"
]
]
},
{
"id": "3e31df0d0a89d1ec",
"type": "cronplus",
"z": "93d58ff8d86edd71",
"name": "Eteindre Lundi, Mardi et jeudi 8h et semaine 23h30 et week end 0h45",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 8 * * MON,TUE,THU *",
"location": "47.579941667607216, 7.516464649107559",
"offset": "0",
"solarType": "selected",
"solarEvents": "nauticalDusk"
},
{
"name": "schedule2",
"topic": "topic2",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 30 23 * * SUN-THU *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
},
{
"name": "schedule3",
"topic": "topic3",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 45 0 * * SAT-SUN *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
}
],
"x": 1090,
"y": 140,
"wires": [
[
"cafb651b73a669d9"
]
]
},
{
"id": "443ff1c5.63d78",
"type": "server",
"name": "Home Assistant",
"version": 5,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": false,
"heartbeatInterval": 30,
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": "at: ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "h23",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": true
}
]