[ { "id": "msunpv_update_progh", "automation": "- id: msunpv_update_progh\n alias: msunpv - Mise à jour affichage programmation horaire\n description: Force un refresh de msunpv_proghoraire_xml après avoir charger le page\n correspondante du routeur à l'aide de la shell_command.msunpv_enable_progh.\n triggers:\n - trigger: state\n entity_id:\n - sensor.msunpv_timerballon_1\n to: unavailable\n for:\n hours: 0\n minutes: 2\n seconds: 0\n conditions: []\n actions:\n - action: shell_command.msunpv_enable_progh\n data: {}\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.msunpv_proghoraire_xml\n mode: single", "config": [ { "name": "timer ballon 1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_timerballon_1", "device_id": null } }, { "name": "proghoraire xml", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_proghoraire_xml", "device_id": null } }, { "name": "msunpv enable progh", "room": null, "type": "shell_command", "id": { "entity_id": "shell_command.msunpv_enable_progh", "device_id": null } } ] }, { "id": "msunpv_update_progh", "automation": "- id: msunpv_update_progh\n alias: msunpv - Mise à jour affichage programmation horaire\n description: Force un refresh de msunpv_proghoraire_xml après avoir charger le page\n correspondante du routeur à l'aide de la shell_command.msunpv_enable_progh.\n triggers:\n - trigger: state\n entity_id:\n - sensor.msunpv_timerballon_1\n to: unavailable\n for:\n hours: 0\n minutes: 2\n seconds: 0\n conditions: []\n actions:\n - action: shell_command.msunpv_enable_progh\n data: {}\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.msunpv_proghoraire_xml\n mode: single", "config": [ { "name": "timer ballon 1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_timerballon_1", "device_id": null } }, { "name": "proghoraire xml", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_proghoraire_xml", "device_id": null } }, { "name": "msunpv enable progh", "room": null, "type": "shell_command", "id": { "entity_id": "shell_command.msunpv_enable_progh", "device_id": null } } ] }, { "id": "msunpv_compteurs_cumulus_forcage_routage", "automation": "- id: msunpv_compteurs_cumulus_forcage_routage\n alias: msunpv_compteurs_cumulus_forcage_routage\n description: Permet de faire la bascule entre l'energie forcée et l'energie routée\n dans le cumulus\n triggers:\n - trigger: template\n value_template: '{{ is_state(''sensor.msunpv_cmd_s1'', [''0'',''4'',''8'']) }}'\n variables:\n tariff: routee\n - trigger: template\n value_template: '{{ is_state(''sensor.msunpv_cmd_s1'', [''1'',''5'',''9'']) }}'\n variables:\n tariff: forcee\n conditions: []\n actions:\n - action: select.select_option\n metadata: {}\n data:\n option: '{{ tariff}} '\n target:\n entity_id: select.msunpv_routbal_daily\n - action: select.select_option\n metadata: {}\n data:\n option: '{{ tariff}} '\n target:\n entity_id: select.msunpv_routbal_monthly\n - action: select.select_option\n metadata: {}\n data:\n option: '{{ tariff}} '\n target:\n entity_id: select.msunpv_routbal_yearly\n mode: single", "config": [ { "name": "cmd s1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_cmd_s1", "device_id": null } }, { "name": "routbal daily", "room": null, "type": "select", "id": { "entity_id": "select.msunpv_routbal_daily", "device_id": null } }, { "name": "routbal monthly", "room": null, "type": "select", "id": { "entity_id": "select.msunpv_routbal_monthly", "device_id": null } }, { "name": "routbal yearly", "room": null, "type": "select", "id": { "entity_id": "select.msunpv_routbal_yearly", "device_id": null } } ] }, { "id": "msunpv_update_thermostats", "automation": "- id: msunpv_update_thermostats\n alias: msunpv - Mise à jour affichage thermostats\n description: Force un refresh de msunpv_thermostats_xml après avoir charger la page\n correspondante du routeur à l'aide de la shell_command.msunmsunpv_enable_thermostatspv_enable_progh.\n triggers:\n - trigger: state\n entity_id:\n - sensor.msunpv_consign_th_1\n to: unavailable\n for:\n hours: 0\n minutes: 2\n seconds: 0\n conditions: []\n actions:\n - action: shell_command.msunpv_enable_thermostats\n data: {}\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.msunpv_thermostats_xml\n mode: single", "config": [ { "name": "consign th 1", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_consign_th_1", "device_id": null } }, { "name": "thermostats xml", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_thermostats_xml", "device_id": null } }, { "name": "msunpv enable thermostats", "room": null, "type": "shell_command", "id": { "entity_id": "shell_command.msunpv_enable_thermostats", "device_id": null } } ] }, { "id": "msunpv_save_sd_file", "automation": "- id: msunpv_save_sd_file\n alias: msunpv - Sauvegarde des fichiers de la carte sd\n description: Sauvegarde les fichiers présents sur la carte sd du msunpv, sur le\n disque dur de home assistant. Tous les jours à 00h05 le fichier de la veille est\n sauvegardé.\n triggers:\n - trigger: time\n at: 00:05:00\n conditions: []\n actions:\n - action: downloader.download_file\n metadata: {}\n data:\n overwrite: false\n subdir: '{{ states(''sensor.msunpv_folder_csv_file'') }}'\n url: '{{ states(''sensor.msunpv_url_csv_file'') }}'\n mode: single", "config": [ { "name": "folder csv file", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_folder_csv_file", "device_id": null } }, { "name": "url csv file", "room": null, "type": "sensor", "id": { "entity_id": "sensor.msunpv_url_csv_file", "device_id": null } } ] } ]