Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: template
- sensors:
- solcast_today:
- friendly_name: 'Solcast Forecast Today'
- value_template: >
- {% set timestamp = as_timestamp(now()) + 86400 %}
- Today - {{ states('sensor.solcast_forecast_today') | round(0) }} kWh
- solcast_day_2:
- friendly_name: 'Solcast Forecast Day 2'
- value_template: >
- {% set timestamp = as_timestamp(now()) + 86400 %}
- {{ timestamp | timestamp_custom('%A', true) }} - {{ states('sensor.solcast_forecast_tomorrow') | round(0) }} kWh
- solcast_day_3:
- friendly_name: 'Solcast Forecast Day 3'
- value_template: >
- {% set timestamp = as_timestamp(now()) + 172800 %}
- {{ timestamp | timestamp_custom('%A', true) }} - {{ states('sensor.solcast_forecast_d3') | round(0) }} kWh
- solcast_day_4:
- friendly_name: 'Solcast Forecast Day 4'
- value_template: >
- {% set timestamp = as_timestamp(now()) + 259200 %}
- {{ timestamp | timestamp_custom('%A', true) }} - {{ states('sensor.solcast_forecast_d4') | round(0) }} kWh
- solcast_day_5:
- friendly_name: 'Solcast Forecast Day 5'
- value_template: >
- {% set timestamp = as_timestamp(now()) + 345600 %}
- {{ timestamp | timestamp_custom('%A', true) }} - {{ states('sensor.solcast_forecast_d5') | round(0) }} kWh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement