Hi there,
Tried to set up a lawn mower automation that should only be executed when there was no rain within the past 12 hours:
[… AND he did not mowe within the past three days at least 9 times (3 mowing-periods per day) AND it’s not raining now.]
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.wetter_rain
below: 0.1
- condition: numeric_state
entity_id: sensor.seppls_vergangene_3_tage
below: 9
- condition: not
conditions:
- condition: state
entity_id: sensor.wetter_condition
state: rainy
for:
hours: 12
Last night it was rainy, and this morning as automation should have been executed the rainy state within the past 12 hours was detected correctly, although conditions in summary resulted true:
Executed: 4. Juli 2023 um 07:10:00
Result:
result: true
## conditions/0
Executed: 4. Juli 2023 um 07:10:00
Result:
result: true
## conditions/0/entity_id/0
Executed: 4. Juli 2023 um 07:10:00
Result:
result: true state: 0
## conditions/1
Executed: 4. Juli 2023 um 07:10:00
Result:
result: true
## conditions/1/entity_id/0
Executed: 4. Juli 2023 um 07:10:00
Result:
result: true state: 7
## conditions/2
Executed: 4. Juli 2023 um 07:10:00
Result:
result: true
## conditions/2/conditions/0
Executed: 4. Juli 2023 um 07:10:00
Result:
result: false
## conditions/2/conditions/0/entity_id/0
Executed: 4. Juli 2023 um 07:10:00
Result:
result: false state: cloudy wanted_state: rainy
How can that be?
Any help would be highly appreciated,
Thank you!