Hi Guys,
I want to get train my skill in automation and want to use the response_variable after a service call in an if statement, but always i got an error, is someone here to can help me?
I just want simple call a service use the response in my if statement to check is the weather today above 24. but what is wrong or it isn’t possible? for run notify it is working
alias: Abdunkeln
description: ""
trigger:
- platform: time
at: "11:00:00"
condition:
- condition: numeric_state
entity_id: weather.home
attribute: temperature
above: 20
action:
- device_id: 07b81e29fa845ff346eda6a3108ceb30
domain: cover
entity_id: 472cbae5e6d100db145fc97b83303d1d
type: close
- device_id: d5958b4bc30c29f88c9c35433a22debb
domain: cover
entity_id: cover.wohnzimmer_rolladen
type: close
- service: weather.get_forecasts
target:
entity_id: weather.home
data:
type: daily
response_variable: wheater_test
- service: notify.notify
data:
message: >-
Heute wird es über {{
wheater_test['weather.home'].forecast[0].temperature }} Grad, ich werde
die Südseite abdunkeln
title: Wird heiß heute
- if:
- condition: template
value_template: "{{ wheater_test['weather.home'].forecast[0].temperature > 24 }}"
then: []
mode: single