There you go, let me know for any issues.
What the Alarmcheck does: When the Home Assistant alarm panel is set to alarm_away it will close ALL covers, including the ones on the balcony doors. If alarm is disabled, they will keep open. Just play around with it, its quite easy. You can also play with other sun elevation levels, may depend on your area and surroundings when you want them to close.
[
{
"id": "f33a51af.7993c8",
"type": "tab",
"label": "Rollos mit der Sonne",
"disabled": false,
"info": ""
},
{
"id": "461906f9.0db388",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Rollos rauf",
"server": "7e24b1f3.1fe48",
"version": 1,
"debugenabled": false,
"service_domain": "cover",
"service": "open_cover",
"entityId": "cover.wohnzimmerfenster, cover.wohnzimmertuer, cover.kueche",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 855.1333312988281,
"y": 259.99999237060547,
"wires": [
[]
]
},
{
"id": "710655f9.dacd1c",
"type": "server-state-changed",
"z": "f33a51af.7993c8",
"name": "Sonnenstand",
"server": "7e24b1f3.1fe48",
"version": 1,
"entityidfilter": "sensor.sonnenstand",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"x": 75,
"y": 377.83331298828125,
"wires": [
[
"f1d5d3.2bf3f23",
"18d2626.5198d9e"
]
]
},
{
"id": "f1d5d3.2bf3f23",
"type": "switch",
"z": "f33a51af.7993c8",
"name": "Über / unter Horizont",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "-3.2",
"vt": "num"
},
{
"t": "lte",
"v": "-5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 306.9999694824219,
"y": 377.75,
"wires": [
[
"33e95ef2.d21b72"
],
[
"d5a19603.c96ab8"
]
]
},
{
"id": "87145822.2832a",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Rollos runter",
"server": "7e24b1f3.1fe48",
"version": 1,
"service_domain": "cover",
"service": "close_cover",
"entityId": "cover.erdgeschoss, cover.obergeschoss",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 875.9999694824219,
"y": 471.33331298828125,
"wires": [
[
"a4411a42.4c7ae8"
]
]
},
{
"id": "693f7a2e.9011e4",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Treppe auf 20%",
"server": "7e24b1f3.1fe48",
"version": 1,
"service_domain": "cover",
"service": "set_cover_position",
"entityId": "cover.treppe",
"data": "{\"position\":\"35\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 864.9999694824219,
"y": 328.3333435058594,
"wires": [
[]
]
},
{
"id": "3e4872cd.16a68e",
"type": "time-range-switch",
"z": "f33a51af.7993c8",
"name": "Morgens",
"lat": "51.16569",
"lon": "10.45153",
"startTime": "05:00",
"endTime": "10:30",
"startOffset": 0,
"endOffset": 0,
"x": 649.1333312988281,
"y": 291,
"wires": [
[
"461906f9.0db388",
"693f7a2e.9011e4"
],
[]
]
},
{
"id": "70bfc34b.95ccdc",
"type": "time-range-switch",
"z": "f33a51af.7993c8",
"name": "Abends",
"lat": "51.16569",
"lon": "10.45153",
"startTime": "16:00",
"endTime": "23:00",
"startOffset": 0,
"endOffset": 0,
"x": 641.6333312988281,
"y": 471,
"wires": [
[
"87145822.2832a"
],
[]
]
},
{
"id": "33e95ef2.d21b72",
"type": "throttle",
"z": "f33a51af.7993c8",
"name": "",
"throttleType": "time",
"timeLimit": "7",
"timeLimitType": "hours",
"countLimit": 0,
"blockSize": 0,
"locked": false,
"x": 404.6333312988281,
"y": 297.99999237060547,
"wires": [
[
"1c9da454.11ab0c"
]
]
},
{
"id": "d5a19603.c96ab8",
"type": "throttle",
"z": "f33a51af.7993c8",
"name": "",
"throttleType": "time",
"timeLimit": "7",
"timeLimitType": "hours",
"countLimit": 0,
"blockSize": 0,
"locked": false,
"x": 369.6333312988281,
"y": 449,
"wires": [
[
"57352f74.9242f"
]
]
},
{
"id": "328a6bfe.c41e14",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Rollos rauf",
"server": "7e24b1f3.1fe48",
"version": 1,
"service_domain": "cover",
"service": "open_cover",
"entityId": "cover.treppe, cover.wohnzimmerfenster, cover.wohnzimmertuer, cover.kueche",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 844.63330078125,
"y": 182,
"wires": [
[]
]
},
{
"id": "bbc8137b.c8f0b",
"type": "time-range-switch",
"z": "f33a51af.7993c8",
"name": "Morgens",
"lat": "51.16569",
"lon": "10.45153",
"startTime": "05:00",
"endTime": "10:30",
"startOffset": 0,
"endOffset": 0,
"x": 656.6333312988281,
"y": 174.99999237060547,
"wires": [
[
"328a6bfe.c41e14"
],
[]
]
},
{
"id": "57352f74.9242f",
"type": "api-current-state",
"z": "f33a51af.7993c8",
"name": "Alarmcheck",
"server": "7e24b1f3.1fe48",
"version": 1,
"outputs": 2,
"halt_if": "armed_away",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "alarm_control_panel.sunny_alarm",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 457.1333312988281,
"y": 502,
"wires": [
[
"70bfc34b.95ccdc"
],
[
"2a5e4ed0.fd8ec2"
]
]
},
{
"id": "53a4d7af.c4f178",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Rollos runter",
"server": "7e24b1f3.1fe48",
"version": 1,
"service_domain": "cover",
"service": "close_cover",
"entityId": "cover.erdgeschoss, cover.treppe, cover.wohnzimmerfenster, cover.kuechenfenster",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 877.6333312988281,
"y": 553,
"wires": [
[]
]
},
{
"id": "2a5e4ed0.fd8ec2",
"type": "time-range-switch",
"z": "f33a51af.7993c8",
"name": "Abends",
"lat": "51.16569",
"lon": "10.45153",
"startTime": "16:00",
"endTime": "23:00",
"startOffset": 0,
"endOffset": 0,
"x": 643.2666931152344,
"y": 552.6666870117188,
"wires": [
[
"53a4d7af.c4f178"
],
[]
]
},
{
"id": "1c9da454.11ab0c",
"type": "api-current-state",
"z": "f33a51af.7993c8",
"name": "Alarmcheck",
"server": "7e24b1f3.1fe48",
"version": 1,
"outputs": 2,
"halt_if": "armed_away",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "alarm_control_panel.sunny_alarm",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 494.6333312988281,
"y": 236.99999237060547,
"wires": [
[
"bbc8137b.c8f0b"
],
[
"3e4872cd.16a68e"
]
]
},
{
"id": "6f061c14.cf98c4",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Licht an",
"server": "7e24b1f3.1fe48",
"version": 1,
"debugenabled": false,
"service_domain": "hue",
"service": "hue_activate_scene",
"entityId": "",
"data": "{\"group_name\":\"Obergeschoss\",\"scene_name\":\"Gedimmt\"}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 815.6333312988281,
"y": 695,
"wires": [
[]
]
},
{
"id": "f4b86de2.9965a",
"type": "api-current-state",
"z": "f33a51af.7993c8",
"name": "Alarmcheck",
"server": "7e24b1f3.1fe48",
"version": 1,
"outputs": 2,
"halt_if": "armed_away",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "alarm_control_panel.sunny_alarm",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 464.6333312988281,
"y": 696,
"wires": [
[
"326d9b7b.da9154"
],
[]
]
},
{
"id": "18d2626.5198d9e",
"type": "switch",
"z": "f33a51af.7993c8",
"name": "Über / unter Horizont",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "-2.5",
"vt": "num"
},
{
"t": "lte",
"v": "-1.5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 304.6333312988281,
"y": 597,
"wires": [
[],
[
"d374f298.fb3b6"
]
]
},
{
"id": "a4411a42.4c7ae8",
"type": "api-call-service",
"z": "f33a51af.7993c8",
"name": "Licht aus",
"server": "7e24b1f3.1fe48",
"version": 1,
"service_domain": "light",
"service": "turn_off",
"entityId": "light.obergeschoss",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1137.13330078125,
"y": 470,
"wires": [
[]
]
},
{
"id": "d374f298.fb3b6",
"type": "throttle",
"z": "f33a51af.7993c8",
"name": "",
"throttleType": "time",
"timeLimit": "7",
"timeLimitType": "hours",
"countLimit": 0,
"blockSize": 0,
"locked": false,
"x": 376.6333312988281,
"y": 645,
"wires": [
[
"f4b86de2.9965a"
]
]
},
{
"id": "326d9b7b.da9154",
"type": "time-range-switch",
"z": "f33a51af.7993c8",
"name": "Abends",
"lat": "51.16569",
"lon": "10.45153",
"startTime": "16:00",
"endTime": "23:00",
"startOffset": 0,
"endOffset": 0,
"x": 640.6333312988281,
"y": 695,
"wires": [
[
"6f061c14.cf98c4"
],
[]
]
},
{
"id": "7e24b1f3.1fe48",
"type": "server",
"z": "",
"name": "Home Assistant",
"legacy": false,
"hassio": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true
}
]