Lurgee
1
Hi What i’m doing wrong here? 
noob error I know.
thanks in advance
Error:
- id: '1702988709203'
alias: 'Rega: Add Current Rain to Total Rain Fallen'
description: Add Current Rain to Total Rain Fallen
trigger:
- alias: 'Rega: Add Current Rain to Total Rain Fallen'
platform: state
entity_id:
- sensor.openweathermap_rain
condition: []
action:
data_template:
entity_id: input_number.rega_total_rain_fallen
value: >-
{{ states("input_number.rega_total_rain_Fallen") | float +
states("sensor.openweathermap.rain") | float }}
service: input_number.set_value
123
(Taras)
2
Error is due to incorrect indentation.
This version corrects the indentation and a few other things.
- id: '1702988709203'
alias: 'Rega: Add Current Rain to Total Rain Fallen'
description: Add Current Rain to Total Rain Fallen
trigger:
- alias: 'Rega: Add Current Rain to Total Rain Fallen'
platform: state
entity_id:
- sensor.openweathermap_rain
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.rega_total_rain_fallen
data:
value: >-
{{ states("input_number.rega_total_rain_Fallen") | float(0) +
states("sensor.openweathermap.rain") | float(0) }}
Lurgee
3
wow… many thanks… who knows knows.