236 lines
12 KiB
JSON
236 lines
12 KiB
JSON
[
|
|
{
|
|
"id": "IU1653340123453",
|
|
"automation": "- id: IU1653340123453\n alias: Irrigation Unlimited Adjustment\n triggers:\n - trigger: time\n at: 02:00\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id:\n - sensor.irrigation_unlimited_rain_weighted_total\n - sensor.irrigation_unlimited_temperature_5_day_moving_average\n - sensor.wupws_preciprate\n condition:\n condition: and\n conditions:\n - '{{ states(''sensor.irrigation_unlimited_rain_weighted_total'') | float(-1)\n != -1 }}'\n - '{{ states(''sensor.wupws_preciprate'') | float(-1) != -1 }}'\n - '{{ states(''sensor.irrigation_unlimited_temperature_5_day_moving_average'')\n | float(-273) != -273 }}'\n actions:\n - action: irrigation_unlimited.adjust_time\n data:\n percentage: \"{# Threshold variables #} {% set rain_total_threshold = 3.5 %}\\\n \\ {% set rain_rate_threshold = 1.0 %} {% set temperature_threshold = 20.0\\\n \\ %}\\n{# Sensor data #} {% set rain_total = states('sensor.irrigation_unlimited_rain_weighted_total')\\\n \\ | float(-1) %} {% set rain_rate = states('sensor.wupws_preciprate') | float(-1)\\\n \\ %} {% set temperature_average = states('sensor.irrigation_unlimited_temperature_5_day_moving_average')\\\n \\ | float(-273) %}\\n{# Threshold variables #} {% set rain_multiplier = (1\\\n \\ - (rain_total / rain_total_threshold)) %} {% set temperature_multiplier\\\n \\ = temperature_average / temperature_threshold %}\\n{% set multiplier = 1.0\\\n \\ %} {% if rain_rate < rain_rate_threshold and rain_multiplier > 0 and rain_total\\\n \\ < rain_total_threshold %}\\n {% set multiplier = multiplier * temperature_multiplier\\\n \\ %}\\n {% set multiplier = multiplier * rain_multiplier %}\\n{% else %}\\n\\\n \\ {% set multiplier = 0.0 %} {# It's raining or enough already #}\\n{% endif\\\n \\ %}\\n{# Return multiplier as a percentage #} {{ (multiplier * 100) | round(0)\\\n \\ }}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "irrigation unlimited rain weighted total",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.irrigation_unlimited_rain_weighted_total",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited temperature 5 day moving average",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.irrigation_unlimited_temperature_5_day_moving_average",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wupws preciprate",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wupws_preciprate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Irrigation Unlimited Load UI Controls",
|
|
"automation": "- alias: Irrigation Unlimited Load UI Controls\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - action: irrigation_unlimited.list_config\n data:\n entity_id: input_select.irrigation_unlimited_entities\n section: entities\n first: <none>\n - action: irrigation_unlimited.list_config\n data:\n entity_id: input_select.irrigation_unlimited_sequences\n section: sequences\n first: <none>",
|
|
"config": [
|
|
{
|
|
"name": "irrigation unlimited entities",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_entities",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited sequences",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_sequences",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Irrigation Unlimited Entities Change",
|
|
"automation": "- alias: Irrigation Unlimited Entities Change\n triggers:\n - trigger: state\n entity_id:\n - input_select.irrigation_unlimited_entities\n from: <none>\n actions:\n - action: input_select.select_option\n target:\n entity_id:\n - input_select.irrigation_unlimited_sequences\n data:\n option: <none>\n - action: input_select.set_options\n target:\n entity_id:\n - input_select.irrigation_unlimited_sequence_zones\n data:\n options:\n - <none>",
|
|
"config": [
|
|
{
|
|
"name": "irrigation unlimited entities",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_entities",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited sequences",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_sequences",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited sequence zones",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_sequence_zones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Irrigation Unlimited Sequences Change",
|
|
"automation": "- alias: Irrigation Unlimited Sequences Change\n triggers:\n - trigger: state\n entity_id:\n - input_select.irrigation_unlimited_sequences\n from: <none>\n actions:\n - action: input_select.select_option\n target:\n entity_id:\n - input_select.irrigation_unlimited_entities\n data:\n option: <none>",
|
|
"config": [
|
|
{
|
|
"name": "irrigation unlimited entities",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_entities",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited sequences",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_sequences",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Irrigation Unlimited Sequences Select",
|
|
"automation": "- alias: Irrigation Unlimited Sequences Select\n triggers:\n - trigger: template\n value_template: '{{ is_state(\"input_select.irrigation_unlimited_sequences\", \"<none>\")\n == False }}'\n actions:\n - action: irrigation_unlimited.list_config\n data:\n entity_id: input_select.irrigation_unlimited_sequence_zones\n section: sequence_zones\n first: <none>\n controller_sequence_entity: input_select.irrigation_unlimited_sequences",
|
|
"config": [
|
|
{
|
|
"name": "irrigation unlimited sequences",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_sequences",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited sequence zones",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.irrigation_unlimited_sequence_zones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "IU1653097957047",
|
|
"automation": "- alias: Smart Irrigation adjustment\n id: IU1653097957047\n description: Adjust watering times based on smart irrigation calculations\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.smart_irrigation_[zone_name]\n to: null\n actions:\n - action: irrigation_unlimited.adjust_time\n data:\n actual: '{{ timedelta(seconds=trigger.to_state.state | int(0)) }}'\n entity_id: binary_sensor.irrigation_unlimited_c1_s1",
|
|
"config": [
|
|
{
|
|
"name": "smart irrigation zone",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.smart_irrigation_[zone_name]",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited c1 s1",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.irrigation_unlimited_c1_s1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "IU1653098247170",
|
|
"automation": "- alias: Smart Irrigation reset bucket\n id: IU1653098247170\n description: Resets the Smart Irrigation bucket after watering\n mode: single\n triggers:\n - trigger: event\n event_type: irrigation_unlimited_finish\n condition:\n - '{{ trigger.event.data.schedule.index is not none }}'\n - '{{ trigger.event.data.entity_id == ''binary_sensor.irrigation_unlimited_c1_s1''\n }}'\n actions:\n - action: smart_irrigation.reset_bucket\n entity_id: sensor.smart_irrigation_[zone_name]\n data: {}",
|
|
"config": [
|
|
{
|
|
"name": "smart irrigation zone",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.smart_irrigation_[zone_name]",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited c1 s1",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.irrigation_unlimited_c1_s1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "IU1653340127290",
|
|
"automation": "- id: IU1653340127290\n alias: Irrigation Unlimited Soil Moisture Adjustment\n triggers:\n - trigger: time\n at: 02:00\n - trigger: homeassistant\n event: start\n condition:\n condition: and\n conditions:\n - '{{ states(''sensor.plaid_systems_ps_sprzms_slp3_humidity'') | float(-1) !=\n -1 }}'\n actions:\n - action: irrigation_unlimited.adjust_time\n data:\n entity_id: binary_sensor.irrigation_unlimited_c1_m\n sequence_id: 0\n percentage: \"{# Threshold variable 0-100 percent #} {% set threshold = 80 %}\\n\\\n {# Sensor data #} {% set humidity = states('sensor.plaid_systems_ps_sprzms_slp3_humidity')\\\n \\ | float %}\\n{% if humidity < threshold %}\\n {% set multiplier = 1 - (humidity\\\n \\ / threshold) %}\\n{% else %}\\n {% set multiplier = 0.0 %} {# It's too wet,\\\n \\ turn off #}\\n{% endif %}\\n{# Return multiplier as a percentage #} {{ (multiplier\\\n \\ * 100) | round(0) }}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "plaid systems ps sprzms slp3 humidity",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.plaid_systems_ps_sprzms_slp3_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited c1 m",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.irrigation_unlimited_c1_m",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "IU1653849227290",
|
|
"automation": "- id: IU1653849227290\n alias: Irrigation Unlimited Soil Temperature Adjustment\n trigger:\n - platform: time\n at: 02:00\n - platform: homeassistant\n event: start\n condition:\n condition: and\n conditions:\n - '{{ states(''sensor.irrigation_unlimited_average_soil_temperature'') | float(-273)\n != -273 }}'\n action:\n service: irrigation_unlimited.adjust_time\n data:\n entity_id: binary_sensor.irrigation_unlimited_c1_m\n sequence_id: 0\n percentage: '{# Threshold variables #} {% set temperature_threshold = 20.0 %}\n\n {# Sensor data #} {% set temperature_average = states(''sensor.irrigation_unlimited_average_soil_temperature'')\n | float(-273) %}\n\n {# Threshold variables #} {% set temperature_multiplier = temperature_average\n / temperature_threshold %}\n\n {# Return multiplier as a percentage #} {{ (temperature_multiplier * 100)\n | round(0) }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "irrigation unlimited c1 m",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.irrigation_unlimited_c1_m",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "irrigation unlimited average soil temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.irrigation_unlimited_average_soil_temperature",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |