backup 20240718
This commit is contained in:
28
entities/templates/ttgo_display.yaml
Normal file
28
entities/templates/ttgo_display.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
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')}}
|
||||
Reference in New Issue
Block a user