Bonjour
Je dispose de volets somfy RTS J’ai fait un script avec Node Red pour ouvrir et fermer les volets automatiquement.
Maintenant j’aimerais que 2 volets s’ouvre a moitié.
Mais je ne sais pas ou mettre le Cover.Stop dans Node Red.
Autre question sur les volets si absents ouvrir volet étage c’est bon comme cela?
[
{
"id": "94625e9c25300474",
"type": "tab",
"label": "Volet ok",
"disabled": false,
"info": "",
"env": []
},
{
"id": "45323552d3f3c188",
"type": "cronplus",
"z": "94625e9c25300474",
"name": "Ouverture RDC cuisine + bow window + sejour",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 7 * * MON-FRI *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
},
{
"name": "schedule2",
"topic": "topic2",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 9 * * SAT-SUN *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
}
],
"x": 300,
"y": 340,
"wires": [
[
"33e8f37e5ba07969"
]
]
},
{
"id": "8665ab8a66a6475c",
"type": "debug",
"z": "94625e9c25300474",
"name": "Ouvrir volet RDC",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 340,
"wires": []
},
{
"id": "33e8f37e5ba07969",
"type": "api-call-service",
"z": "94625e9c25300474",
"name": "",
"server": "b4a0da5d.eb0d98",
"version": 5,
"debugenabled": false,
"domain": "cover",
"service": "open_cover",
"areaId": [],
"deviceId": [],
"entityId": [
"cover.bowwindow_porte_sejour",
"cover.fenetre_cuisine",
"cover.porte_fenetre_cuisine"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 630,
"y": 340,
"wires": [
[
"8665ab8a66a6475c"
]
]
},
{
"id": "10dbca79ec5738c6",
"type": "cronplus",
"z": "94625e9c25300474",
"name": "Fermeture RDC",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "solar",
"expression": "0 0 7 * * MON-FRI *",
"location": "47.579941667607216, 7.516464649107559",
"offset": "30",
"solarType": "selected",
"solarEvents": "sunset"
}
],
"x": 340,
"y": 440,
"wires": [
[
"37c41cd6526b4dc5"
]
]
},
{
"id": "37c41cd6526b4dc5",
"type": "api-call-service",
"z": "94625e9c25300474",
"name": "",
"server": "b4a0da5d.eb0d98",
"version": 5,
"debugenabled": false,
"domain": "cover",
"service": "close_cover",
"areaId": [],
"deviceId": [],
"entityId": [
"cover.rdc"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 610,
"y": 440,
"wires": [
[
"294676724a383d3e"
]
]
},
{
"id": "294676724a383d3e",
"type": "debug",
"z": "94625e9c25300474",
"name": "Fermer volet RDC",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 440,
"wires": []
},
{
"id": "6e47633bfa523752",
"type": "cronplus",
"z": "94625e9c25300474",
"name": "Fermeture Etage",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "solar",
"expression": "0 0 7 * * MON-FRI *",
"location": "47.579941667607216, 7.516464649107559",
"offset": "15",
"solarType": "selected",
"solarEvents": "sunset"
}
],
"x": 330,
"y": 540,
"wires": [
[
"ac33bdfe940ddaf3"
]
]
},
{
"id": "ac33bdfe940ddaf3",
"type": "api-call-service",
"z": "94625e9c25300474",
"name": "",
"server": "b4a0da5d.eb0d98",
"version": 5,
"debugenabled": false,
"domain": "cover",
"service": "close_cover",
"areaId": [],
"deviceId": [],
"entityId": [
"cover.etage"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 590,
"y": 540,
"wires": [
[
"9be69282be4c1155"
]
]
},
{
"id": "9be69282be4c1155",
"type": "debug",
"z": "94625e9c25300474",
"name": "Fermer volet Etage",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 890,
"y": 540,
"wires": []
},
{
"id": "4fc1954a9d375ca7",
"type": "cronplus",
"z": "94625e9c25300474",
"name": "Ouvrir étage ",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "dates",
"expression": "0 0 8 * * MON-FRI *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
}
],
"x": 430,
"y": 640,
"wires": [
[
"14db2903db0aac1e"
]
]
},
{
"id": "14db2903db0aac1e",
"type": "api-call-service",
"z": "94625e9c25300474",
"name": "",
"server": "b4a0da5d.eb0d98",
"version": 5,
"debugenabled": false,
"domain": "cover",
"service": "open_cover",
"areaId": [],
"deviceId": [],
"entityId": [
"cover.etage"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 750,
"y": 640,
"wires": [
[
"304b8f6b58bdaa23"
]
]
},
{
"id": "2f9c1c126b524f6d",
"type": "cronplus",
"z": "94625e9c25300474",
"name": "Ouverture bandeau a moitier",
"outputField": "payload",
"timeZone": "",
"persistDynamic": false,
"commandResponseMsgOutput": "output1",
"outputs": 1,
"options": [
{
"name": "schedule1",
"topic": "topic1",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 7 * * MON-FRI *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
},
{
"name": "schedule2",
"topic": "topic2",
"payloadType": "default",
"payload": "",
"expressionType": "cron",
"expression": "0 0 9 * * SAT-SUN *",
"location": "",
"offset": "0",
"solarType": "all",
"solarEvents": "sunrise,sunset"
}
],
"x": 260,
"y": 240,
"wires": [
[
"f2b7660bf57691d3"
]
]
},
{
"id": "f2b7660bf57691d3",
"type": "api-call-service",
"z": "94625e9c25300474",
"name": "",
"server": "b4a0da5d.eb0d98",
"version": 5,
"debugenabled": false,
"domain": "cover",
"service": "open_cover",
"areaId": [],
"deviceId": [],
"entityId": [
"cover.gerer_les_2_bandeau"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 530,
"y": 240,
"wires": [
[
"8c28a70403c2c1f2"
]
]
},
{
"id": "8c28a70403c2c1f2",
"type": "debug",
"z": "94625e9c25300474",
"name": "Ouvrir volet RDC",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 990,
"y": 240,
"wires": []
},
{
"id": "304b8f6b58bdaa23",
"type": "debug",
"z": "94625e9c25300474",
"name": "Ouvrir volet Etage",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 990,
"y": 640,
"wires": []
},
{
"id": "02afceeaf706f432",
"type": "server-state-changed",
"z": "94625e9c25300474",
"name": "Si absent",
"server": "b4a0da5d.eb0d98",
"version": 4,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "group.personne",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "not_home",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"for": "0",
"forType": "num",
"forUnits": "minutes",
"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": 100,
"y": 640,
"wires": [
[
"4fc1954a9d375ca7"
],
[]
]
},
{
"id": "b4a0da5d.eb0d98",
"type": "server",
"name": "Home Assistant ok",
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "",
"connectionDelay": false,
"cacheJson": false,
"heartbeat": false,
"heartbeatInterval": "",
"statusSeparator": "",
"enableGlobalContextStore": false
}
]
Je vous remercie pour votre aide