Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105567

Template sensor to read dynamically nested attribute information

$
0
0

I want to read i.e. precipitation_probability from todays date (or always first set after forecast) fromt the following sensor:

temperature: 30
humidity: 36
pressure: 1019.1
wind_bearing: 224
wind_speed: 9.3
visibility: 42.9
attribution: Data provided by Deutscher Wetterdienst (DWD)
forecast: 
- datetime: '2020-09-15'
  condition: sunny
  temperature: 30.3
  templow: 17
  precipitation: 0
  precipitation_probability: 2

I have some troubles finding the right code for a template sensor to read the probabilty and precipitation from the foreast and can find any documentation for HAss to read from a nested sensor with a dynamic date as the identifier to match. Can someone point me in the right direction? Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105567

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>