20240410-21:12
This commit is contained in:
@@ -36,8 +36,8 @@ sensor:
|
||||
|
||||
weather_condition_0: >
|
||||
{% set cond0 = daily["weather.forecast_home"].forecast[0].condition %}
|
||||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
# {% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
# {% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond0_time = as_timestamp(daily["weather.forecast_home"].forecast[0].datetime) %}
|
||||
{% if cond0_time > next_setting and cond0_time < next_rising %}
|
||||
{% if cond0 == 'sunny' %} night {% elif cond0 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond0 }} {% endif %}
|
||||
@@ -46,13 +46,12 @@ sensor:
|
||||
{% endif %}
|
||||
weather_temperature_0: >
|
||||
{{ daily["weather.forecast_home"].forecast[0].temperature | round }}
|
||||
#{{ daily["weather.forecast_home"].forecast[0].temperature | round }}
|
||||
weather_timestamp_0: >
|
||||
{{ as_timestamp(daily["weather.forecast_home"].forecast[0].datetime) | timestamp_custom('%a') }}
|
||||
weather_condition_1: >
|
||||
{% set cond1 = daily["weather.forecast_home"].forecast[1].condition %}
|
||||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
# {% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
# {% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond1_time = as_timestamp(daily["weather.forecast_home"].forecast[1].datetime) %}
|
||||
{% if cond1_time > next_setting and cond1_time < next_rising %}
|
||||
{% if cond1 == 'sunny' %} night {% elif cond1 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond1 }} {% endif %}
|
||||
@@ -65,8 +64,8 @@ sensor:
|
||||
{{ as_timestamp(daily["weather.forecast_home"].forecast[1].datetime) | timestamp_custom('%a') }}
|
||||
weather_condition_2: >
|
||||
{% set cond2 = daily["weather.forecast_home"].forecast[2].condition %}
|
||||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
# {% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
# {% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond2_time = as_timestamp(daily["weather.forecast_home"].forecast[2].datetime) %}
|
||||
{% if cond2_time > next_setting and cond2_time < next_rising %}
|
||||
{% if cond2 == 'sunny' %} night {% elif cond2 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond2 }} {% endif %}
|
||||
@@ -79,8 +78,8 @@ sensor:
|
||||
{{ as_timestamp(daily["weather.forecast_home"].forecast[2].datetime) | timestamp_custom('%a') }}
|
||||
weather_condition_3: >
|
||||
{% set cond3 = daily["weather.forecast_home"].forecast[3].condition %}
|
||||
{% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
{% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
# {% set next_setting = as_timestamp(state_attr('sun.sun', 'next_setting')) %}
|
||||
# {% set next_rising = as_timestamp(state_attr('sun.sun', 'next_rising')) %}
|
||||
{% set cond3_time = as_timestamp(daily["weather.forecast_home"].forecast[3].datetime) %}
|
||||
{% if cond3_time > next_setting and cond3_time < next_rising %}
|
||||
{% if cond3 == 'sunny' %} night {% elif cond3 == 'partlycloudy' %} night-partly-cloudy {% else %} {{ cond3 }} {% endif %}
|
||||
@@ -111,8 +110,8 @@ sensor:
|
||||
{{ state_attr('Sun.sun', 'next_rising') }}
|
||||
sun_next_setting: >
|
||||
{{ state_attr('Sun.sun', 'next_setting') }}
|
||||
moon_phase_icon: >
|
||||
{{ state_attr('sensor.moon_phase', 'icon') }}
|
||||
# moon_phase_icon: >
|
||||
# {{ state_attr('sensor.moon_phase', 'icon') }}
|
||||
|
||||
media_playing_status: >
|
||||
{{ states('media_player.keuken') }}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
---
|
||||
trigger:
|
||||
platform: time_pattern
|
||||
minutes: "/1"
|
||||
sensor:
|
||||
- name: ttgo Display Data
|
||||
unique_id: ttgo_display_data
|
||||
icon: ios:display-2
|
||||
availability: true
|
||||
state: "OK"
|
||||
attributes:
|
||||
temperature: >
|
||||
{{ state_attr('weather.forecast_home', 'temperature') | round }}
|
||||
temperature_unit: >
|
||||
{{ state_attr('weather.forecast_home', 'temperature_unit')}}
|
||||
wind_speed: >
|
||||
{{ state_attr('weather.forecast_home', 'wind_speed')}}
|
||||
weather_condition_0: >
|
||||
{{ state_attr('weather.forecast_home', 'forecast')[0].condition }}
|
||||
netto_power: >
|
||||
{{ states('sensor.dsmr_reading_electricity_currently_delivered') * 1000}}
|
||||
|
||||
# humidity: 98
|
||||
# pressure: 991.4
|
||||
# pressure_unit: hPa
|
||||
# wind_bearing: 75
|
||||
# wind_speed: 15.8
|
||||
Reference in New Issue
Block a user