67 lines
5.5 KiB
JSON
67 lines
5.5 KiB
JSON
[
|
|
{
|
|
"id": "msunpv_update_progh",
|
|
"result": {
|
|
"structured": "TRIGGER: When timer ballon 1 [sensor.msunpv_timerballon_1] becomes unavailable and remains so for 2 minutes. CONDITIONS: None. ACTIONS: Execute shell command msunpv enable progh [shell_command.msunpv_enable_progh], then wait for 5 seconds, then update the entity proghoraire xml [sensor.msunpv_proghoraire_xml].",
|
|
"natural_language": {
|
|
"trigger": "When the sensor timer ballon 1 [sensor.msunpv_timerballon_1] becomes unavailable and stays in that state for two minutes.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it runs the shell command msunpv enable progh [shell_command.msunpv_enable_progh]. After a five-second delay, it forces an update of the sensor proghoraire xml [sensor.msunpv_proghoraire_xml]."
|
|
},
|
|
"human_like": "Refreshes the hourly programming display data after a sensor becomes unavailable, ensuring the latest schedule is loaded.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "msunpv_update_progh",
|
|
"result": {
|
|
"structured": "TRIGGER: When timer ballon 1 [sensor.msunpv_timerballon_1] becomes unavailable and remains so for 2 minutes. CONDITIONS: None. ACTIONS: Execute shell command msunpv enable progh [shell_command.msunpv_enable_progh], wait for 5 seconds, then update the entity proghoraire xml [sensor.msunpv_proghoraire_xml].",
|
|
"natural_language": {
|
|
"trigger": "When the sensor timer ballon 1 [sensor.msunpv_timerballon_1] reports as unavailable for a continuous period of two minutes.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it runs the shell command msunpv enable progh [shell_command.msunpv_enable_progh]. After a five-second delay, it forces an update of the sensor proghoraire xml [sensor.msunpv_proghoraire_xml]."
|
|
},
|
|
"human_like": "Refreshes the hourly programming display data when the main timer sensor has been unavailable for two minutes.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "msunpv_compteurs_cumulus_forcage_routage",
|
|
"result": {
|
|
"structured": "TRIGGER: When cmd s1 [sensor.msunpv_cmd_s1] state is '0', '4', or '8' (sets variable tariff to 'routee') OR When cmd s1 [sensor.msunpv_cmd_s1] state is '1', '5', or '9' (sets variable tariff to 'forcee'). CONDITIONS: None. ACTIONS: Set routbal daily [select.msunpv_routbal_daily] option to the value of variable 'tariff'. AND Set routbal monthly [select.msunpv_routbal_monthly] option to the value of variable 'tariff'. AND Set routbal yearly [select.msunpv_routbal_yearly] option to the value of variable 'tariff'.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers when the sensor cmd s1 [sensor.msunpv_cmd_s1] reports a state of either '0', '4', or '8', which is interpreted as a 'routed' energy mode, or when it reports a state of '1', '5', or '9', which is interpreted as a 'forced' energy mode.",
|
|
"conditions": "There are no conditions that must be met for the action to execute.",
|
|
"action": "It updates three select entities—routbal daily [select.msunpv_routbal_daily], routbal monthly [select.msunpv_routbal_monthly], and routbal yearly [select.msunpv_routbal_yearly]—to the energy mode ('routee' or 'forcee') determined by the trigger."
|
|
},
|
|
"human_like": "Switches the water heater's energy routing mode between 'forced' and 'routed' based on a command signal from the solar system.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "msunpv_update_thermostats",
|
|
"result": {
|
|
"structured": "TRIGGER: When consign th 1 [sensor.msunpv_consign_th_1] becomes unavailable AND remains unavailable for 2 minutes. CONDITIONS: None. ACTIONS: Execute shell command msunpv enable thermostats [shell_command.msunpv_enable_thermostats], wait for 5 seconds, then update the entity thermostats xml [sensor.msunpv_thermostats_xml].",
|
|
"natural_language": {
|
|
"trigger": "When the sensor consign th 1 [sensor.msunpv_consign_th_1] reports as unavailable and stays in that state for two minutes.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it runs the shell command msunpv enable thermostats [shell_command.msunpv_enable_thermostats]. After a five-second delay, it forces an update of the sensor thermostats xml [sensor.msunpv_thermostats_xml]."
|
|
},
|
|
"human_like": "Refreshes the thermostat display data after the primary thermostat sensor has been unavailable for two minutes.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "msunpv_save_sd_file",
|
|
"result": {
|
|
"structured": "TRIGGER: At 00:05:00 every day. CONDITIONS: None. ACTIONS: Download a file from the URL specified by url csv file [sensor.msunpv_url_csv_file] to the subdirectory specified by folder csv file [sensor.msunpv_folder_csv_file] without overwriting existing files.",
|
|
"natural_language": {
|
|
"trigger": "Every day at 5 minutes past midnight.",
|
|
"conditions": "There are no conditions that must be met.",
|
|
"action": "Downloads a file from the URL provided by the sensor url csv file [sensor.msunpv_url_csv_file] and saves it into the folder specified by the sensor folder csv file [sensor.msunpv_folder_csv_file]. If a file with the same name already exists, it will not be overwritten."
|
|
},
|
|
"human_like": "Automatically downloads a daily CSV file from the solar inverter to the Home Assistant storage at 5 minutes past midnight.",
|
|
"complexity": "low"
|
|
}
|
|
}
|
|
] |