Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #動作->取得天氣預報的回報
- weather.myhomeaccu:
- forecast:
- - datetime: "2024-12-14T23:00:00+00:00"
- cloud_coverage: 74
- precipitation_probability: 11
- uv_index: 2
- wind_bearing: 41
- condition: partlycloudy
- temperature: 17.9
- apparent_temperature: 14.5
- templow: 14.5
- wind_gust_speed: 61.1
- wind_speed: 35.2
- precipitation: 0
- humidity: 67
- #自動化:
- - action: weather.get_forecasts
- data:
- type: daily
- response_variable: weather #這會用在下面當變數用
- target:
- entity_id: weather.myhomeaccu
- - action: notify.line_notify
- metadata: {}
- data:
- message: >-
- 今天氣溫: {{ weather['weather.myhomeaccu'].forecast[0].temperature }}°C,低溫:
- {{ weather['weather.myhomeaccu'].forecast[0].templow }}°C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement