I can get this to work:
- condition: numeric_state entity_id: sensor.plant1_moisture below: 35
but cant get this to work:
- condition: condition: or conditions: - condition: numeric_state entity_id: sensor.plant1_moisture below: 35 - condition: numeric_state entity_id: sensor.plant2_moisture below: 35
Full script is as follows:
script:
plantalert:
sequence:
- condition:
condition: or
conditions:
- condition: numeric_state
entity_id: sensor.plant1_moisture
below: 35
- condition: numeric_state
entity_id: sensor.plant2_moisture
below: 35
- service: notify.mypushover
data_template:
message: "Water your plants!."
- delay: '03:00'
- service: script.plantalert_repeat
plantalert_repeat:
sequence:
- condition:
condition: or
conditions:
- condition: numeric_state
entity_id: sensor.plant1_moisture
below: 35
- condition: numeric_state
entity_id: sensor.plant2_moisture
below: 35
- service: notify.mypushover
data_template:
message: "Water your plants!."
- delay: '03:00'
- service: script.plantalert
Error that I get is:
Invalid config for [script]: [condition] is an invalid option for [script]. Check: script->script->plantalert->sequence->0->condition. (See /config/configuration.yaml, line 240). Please check the docs at Scripts - Home Assistant