29 lines
827 B
YAML
29 lines
827 B
YAML
---
|
|
trigger:
|
|
platform: time_pattern
|
|
minutes: "/1"
|
|
action:
|
|
- service: weather.get_forecasts
|
|
data:
|
|
type: daily
|
|
target:
|
|
entity_id: weather.forecast_home
|
|
response_variable: daily
|
|
sensor:
|
|
- name: ttgo Display Data
|
|
unique_id: ttgo_display_data
|
|
icon: ios:display-2
|
|
availability: true
|
|
state: "OK"
|
|
attributes:
|
|
temperature: >
|
|
{{ daily["weather.forecast_home"].forecast[0].temperature | round }}
|
|
temperature_unit: >
|
|
{{ state_attr('weather.forecast_home', 'temperature_unit')}}
|
|
wind_speed: >
|
|
{{ daily["weather.forecast_home"].forecast[0].wind_speed }}
|
|
weather_condition_0: >
|
|
{{ daily["weather.forecast_home"].forecast[0].condition }}
|
|
netto_power: >
|
|
{{ states('sensor.dsmr_reading_electricity_currently_delivered')}}
|