{"id":4029,"date":"2023-05-20T10:19:03","date_gmt":"2023-05-20T08:19:03","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=4029"},"modified":"2026-01-02T17:01:48","modified_gmt":"2026-01-02T15:01:48","slug":"ecole-demain","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain","title":{"rendered":"Schule morgen?"},"content":{"rendered":"<p>Im Rahmen des<a href=\"https:\/\/www.sigalou-domotique.fr\/de\/integrer-pronote-a-son-home-assistant\/\" target=\"_blank\" rel=\"noopener\">Pronote-Integration<\/a>, Damit morgen Vormittag automatisch ein Alarm ausgel\u00f6st werden kann oder die Aktualisierung von Pronote so eingestellt werden kann, dass sie nicht an den Schulferientagen aktualisiert wird, muss ich wissen, ob wir uns in Schulferien befinden und ob es morgen Schule gibt.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4030\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote18.png\" alt=\"\" width=\"441\" height=\"172\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote18.png 441w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote18-300x117.png 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><!--more--><\/p>\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6aea4cec7dcbd\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6aea4cec7dcbd\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Un_jour_ouvrable\" >Ein Arbeitstag?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#En_vacances_scolaires\" >In den Schulferien?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Ajout_dun_sensor_%E2%80%98vacances_scolaires\" >Hinzuf\u00fcgung eines Sensors \u201aSchul-_-Urlaub\u2018<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Resultat_de_ce_capteur\" >Ergebnis dieses Sensors<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Ajout_de_deux_capteurs_binaires_Vacances_Scolaires_aujourdhui_et_Vacances_Scolaires_demain\" >Hinzuf\u00fcgen von zwei bin\u00e4ren Sensoren f\u00fcr Schulferien heute und Schulferien morgen<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Resultat_de_ces_capteurs_teste_un_jour_de_vacance\" >Ergebnis dieser Sensoren (getestet an einem freien Tag)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Un_binary_sensor_pour_autoriser_la_mise_a_jour_Pronote\" >Ein binary_sensor zum Erlauben des Pronote-Updates<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigalou-domotique.fr\/de\/ecole-demain\/#Ajouter_une_condition_au_lancement_de_la_mise_a_jour\" >Hinzuf\u00fcgen einer Bedingung zum Starten des Updates<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Un_jour_ouvrable\"><\/span>Ein Arbeitstag?<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>Um herauszufinden, ob wir ein Arbeitstag sind oder nicht, installieren Sie einfach die Erweiterung <a href=\"https:\/\/www.home-assistant.io\/integrations\/workday\/\" target=\"_blank\" rel=\"noopener\">Workday<\/a><\/p>\r\n<p>Nichts ist einfacher, alles ist in <a href=\"https:\/\/www.home-assistant.io\/integrations\/workday\/\" target=\"_blank\" rel=\"noopener\">die Dokumentation.<\/a><\/p>\r\n<p><a href=\"https:\/\/my.home-assistant.io\/redirect\/config_flow_start?domain=workday\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3632\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/04\/addintegration.png\" alt=\"\" width=\"202\" height=\"27\" \/><\/a><\/p>\r\n<p>Ich f\u00fcge sie zweimal hinzu. Um morgen zu haben, f\u00fcgen wir mit einer Verschiebung von 1 hinzu.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4052\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour1.png\" alt=\"\" width=\"206\" height=\"159\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4054\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour2.png\" alt=\"\" width=\"692\" height=\"204\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour2.png 692w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour2-600x177.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour2-300x88.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4057\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour3.png\" alt=\"\" width=\"437\" height=\"96\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour3.png 437w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour3-300x66.png 300w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/p>\r\n<p><em>Deaktiviert = Nicht-Arbeitstag<\/em><\/p>\r\n<h2><span class=\"ez-toc-section\" id=\"En_vacances_scolaires\"><\/span>In den Schulferien?<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>Um herauszufinden, ob wir in den Schulferien sind oder nicht, muss die API des Bildungsministeriums abgefragt werden. Das verwendete Skript ist V1, es hat eine V2.0, wenn ich etwas Zeit habe, werde ich sp\u00e4ter auf die V2.0 wechseln.<\/p>\r\n<ul>\r\n<li>V1: https:\/\/data.education.gouv.fr\/api\/v1\/console\/datasets\/1.0\/search\/<\/li>\r\n<li>V2.0: https:\/\/data.education.gouv.fr\/api\/explore\/v2.0\/console<\/li>\r\n<\/ul>\r\n<p>F\u00fcr diese Sensoren verwendete Ressource (Danke an den Autor):<\/p>\r\n<ul>\r\n<li>https:\/\/github.com\/papo-o\/home-assistant-config\/blob\/master\/integrations\/vacances_scolaires.yaml<\/li>\r\n<li>https:\/\/pon.fr\/home-assistant-vacances-scolaires\/<\/li>\r\n<\/ul>\r\n<h3><span class=\"ez-toc-section\" id=\"Ajout_dun_sensor_%E2%80%98vacances_scolaires\"><\/span>Hinzuf\u00fcgung eines Sensors \u201aSchul-_-Urlaub\u2018<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>In meiner Datei <a href=\"https:\/\/github.com\/sigalou\/home-assistant-config-fr\/blob\/main\/sensors.yaml\" target=\"_blank\" rel=\"noopener\">sensors.yaml<\/a>, f\u00fcge ich diesen Sensor hinzu:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">- platform: rest scan_interval: '00:30:00' name: Ferien_Schulen json_attributes_path: \"$.records[0].fields\" json_attributes: - start_date - end_date - Beschreibung resource_template: |- {% set location = 'Aix-Marseille' %} {% set rows = '1'%} {% set heute = now().strftime('%Y-%m-%d')%} {% set dayOfYear = now().strftime('%ich') %} {% set year = now().strftime('%Y') | int %} {% set lastYear = year - 1 %} {% set nextYear = Jahr + 1 %} {% if dayOfYear &gt; '244' %} {% set schoolYear = (year | string) + \"-\" + (nextYear | string) %} {%- else -%} {% set schoolYear = (lastYear | string) + \"-\" + (year | string) %} {%- endif %} https:\/\/data.education.gouv.fr\/api\/records\/1.0\/search\/?dataset=de-en-kalender-schule&amp;facet=start_date&amp;facet=end_date&amp;rows={{rows}&amp;refine.location={location}&amp;sort=-end_date&amp;q=end_date={{heute}} value_template: |- {% set heute = now().strftime('%Y-%m-%d')%} {% for record in value_json.records -%} {% if heute &gt;= record.fields.start_date and heute &lt;= record.fields.end_date %} {%- if record.fields.description %}{{record.fields.description}} bis {{ as_timestamp(record.fields.end_date) | timestamp_custom('%d-%m-%Y') }} {% endif %} {% else %} {%- if record.fields.end_date &gt; heute and record.fields.description %} n\u00e4chste: {{record.fields.description}} {{ as_timestamp(record.fields.start_date) | timestamp_custom('%d-%m-%Y') }}{% endif %} {% endif %} {%- endfor %}    <\/pre>\r\n<p>Nat\u00fcrlich muss die Akademie gewechselt werden: \u201aKorsika\u2018, \u201aPolynesien\u2018, \u201aNeukaledonien\u2018, \u201aGuyana\u2018, \u201aAix-Marseille\u2018, \u201aAmiens\u2018, \u201aBesan\u00e7on\u2018, \u201aBordeaux\u2018, \u201aClermont-Ferrand\u2018, \u201aCr\u00e9teil\u2018, \u201aDijon\u2018, \u201aGrenoble\u2018, \u201aLille\u2018, \u201aLimoges\u2018, \u201aLyon\u2018, \u201aMontpellier\u2018, \u201aNancy-Metz\u2018, \u201aNantes\u2018, \u201aNice\u2018, \u201aOrl\u00e9ans-Tours\u2018, \u201aParis\u2018, \u201aPoitiers\u2018, \u201aReims\u2018, \u201aRennes\u2018, \u201aStra\u00dfburg\u2018, \u201aToulouse\u2018, \u201aVersailles\u2018, \u201aMayotte\u2018, \u201aR\u00e9union\u2018, \u201aMartinique\u2018, \u201aSaint Pierre et Miquelon\u2018, \u201aWallis et Futuna\u2018, \u201aCaen\u2018, \u201aRouen\u2018, \u201aGuadeloupe\u2018, \u201aNormandie\u2018\u00a0<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"Resultat_de_ce_capteur\"><\/span>Ergebnis dieses Sensors<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4035\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote20.png\" alt=\"\" width=\"845\" height=\"82\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote20.png 845w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote20-600x58.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote20-300x29.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote20-768x75.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p>\r\n<p>Diese Informationen m\u00fcssen es erm\u00f6glichen, zwei Informationen in Form von binary_sensor zu extrahieren, die in Automatisierungen oder Skripten verwendet werden k\u00f6nnen.<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"Ajout_de_deux_capteurs_binaires_Vacances_Scolaires_aujourdhui_et_Vacances_Scolaires_demain\"><\/span>Hinzuf\u00fcgen von zwei bin\u00e4ren Sensoren f\u00fcr Schulferien heute und Schulferien morgen<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<blockquote>\r\n<p><em>Aktualisiert am 03\/10\/2023<\/em>, dank der <a href=\"https:\/\/forum.hacf.fr\/t\/vacances-scolaires-api-data-education-gouv-fr\/28810\/4\" target=\"_blank\" rel=\"noopener\">Einschl\u00e4gige Bemerkung<\/a> von <a href=\"https:\/\/forum.hacf.fr\/u\/giga77\/summary\" target=\"_blank\" rel=\"noopener\">Giga77<\/a>, ich korrigiere den Code unten und ersetze<\/p>\r\n<p><code>states.sensor.vacances_scolaires.attributes[\"start_date\"]<\/code><br \/>durch<br \/><code>state_attr('sensor.vacances_scolaires', 'start_date')<\/code><\/p>\r\n<\/blockquote>\r\n<p>In meiner Datei <a href=\"https:\/\/github.com\/sigalou\/home-assistant-config-fr\/blob\/main\/templates.yaml\" target=\"_blank\" rel=\"noopener\">templates.yaml<\/a>, f\u00fcge ich diese Sensoren hinzu:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">- binary_sensor: - name: Ferien_Schulen_heute einzigartig_id: binary_sensor.vacances_Schulen_heute state: |- {% set heute = now().strftime('%Y-%m-%d')%} {% if heute &lt; state_attr('sensor.vacances_scolaires', 'start_date') oder heute &gt; state_attr('sensor.vacances_scolaires', 'end_date') %} false {% else %} true {% endif %} - binary_sensor: - name: Ferien_Schulen_einzigartigemorgen_id: binary_sensor.urlaub_schule_demain state: |- {% set morgen = (as_timestamp(now()) + (24*3600)) | timestamp_custom('%Y-%m-%d', True) %} {% if morgen &lt; state_attr('sensor.vacances_scolaires', 'start_date') or morgen &gt; state_attr('sensor.vacances_scolaires', 'end_date') %} false {% else %} true {% endif %}     <\/pre>\r\n<p>&nbsp;<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"Resultat_de_ces_capteurs_teste_un_jour_de_vacance\"><\/span>Ergebnis dieser Sensoren (getestet an einem freien Tag)<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4037\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote21.png\" alt=\"\" width=\"849\" height=\"106\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote21.png 849w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote21-600x75.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote21-300x37.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote21-768x96.png 768w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4042\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote22.png\" alt=\"\" width=\"425\" height=\"67\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote22.png 425w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/pronote22-300x47.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"Un_binary_sensor_pour_autoriser_la_mise_a_jour_Pronote\"><\/span>Ein binary_sensor zum Erlauben des Pronote-Updates<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>Es ist nicht sinnvoll, Pronote w\u00e4hrend der Ferien oder an arbeitsfreien Tagen zu aktualisieren.<\/p>\r\n<p>Ich habe einen binary_sensor erstellt, der es erm\u00f6glicht, Pronote zu aktualisieren oder nicht.<\/p>\r\n<p>In meiner Datei <a href=\"https:\/\/github.com\/sigalou\/home-assistant-config-fr\/blob\/main\/templates.yaml\" target=\"_blank\" rel=\"noopener\">templates.yaml<\/a>, f\u00fcge ich diesen Sensor hinzu:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">- binary_sensor: - name: zu genehmigen_aktualisiert_pronoteUnique_id: binary_sensor.autorisieren_aktualisiert_pronote state: \"{{ is_state('binary_sensor.vacances_scolairesheute', 'off') and is_state('binary_sensor.ouvrable_hui', 'on')}\"<\/pre>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4062\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour4.png\" alt=\"\" width=\"794\" height=\"45\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour4.png 794w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour4-600x34.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour4-300x17.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour4-768x44.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4063\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour5.png\" alt=\"\" width=\"448\" height=\"103\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour5.png 448w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour5-300x69.png 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"Ajouter_une_condition_au_lancement_de_la_mise_a_jour\"><\/span>Hinzuf\u00fcgen einer Bedingung zum Starten des Updates<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>Wie in der <a href=\"https:\/\/www.sigalou-domotique.fr\/de\/integrer-pronote-a-son-home-assistant\/\" target=\"_blank\" rel=\"noopener\">Tutorial zur Pronote-Integration<\/a>, wird eine Automatisierung hinzugef\u00fcgt, um das Pronote-Update regelm\u00e4\u00dfig zu starten, und mit der neuen Entit\u00e4t binary_sensor.erlauben_update_pronote, wir werden das Update nur zulassen, wenn binary_sensor.erlauben_update_pronote=on<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4067\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour6.png\" alt=\"\" width=\"803\" height=\"348\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour6.png 803w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour6-600x260.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour6-300x130.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/05\/jour6-768x333.png 768w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/p>\r\n<p>Hier ist der vollst\u00e4ndige YAML-Code f\u00fcr die Automatisierung<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">alias: Aktualisiert Pronote Beschreibung: \"\" trigger: - platform: time_pattern hours:\u00a0\/4 Bedingung: - Bedingung: state entity_id: binary_sensor.autorisieren_aktualisiert_pronote state: \u201eOn\u201c-Aktion: - Dienststelle: shell_command.update_pronote data: {} Modus: single<\/pre>\r\n<p>An Werktagen au\u00dferhalb der Schulferien wird die Genehmigung aktiviert und Pronote wird alle 4 Stunden aktualisiert.<\/p>","protected":false},"excerpt":{"rendered":"<p>Im Rahmen der Pronote-Integration muss ich wissen, ob wir uns im Schulurlaub befinden und ob es morgen eine Schule gibt, damit morgen fr\u00fch automatisch ein Alarm ausgel\u00f6st werden kann oder um die Aktualisierung von Pronote so zu gestalten, dass die Schulferien nicht aktualisiert werden.<\/p>","protected":false},"author":1,"featured_media":4052,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,166],"tags":[81,84],"class_list":["post-4029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domotique","category-home-assistant","category-retex","tag-developpement","tag-pronote"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts\/4029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/comments?post=4029"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/posts\/4029\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/media\/4052"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/media?parent=4029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/categories?post=4029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/de\/wp-json\/wp\/v2\/tags?post=4029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}