View difference between Paste ID: gzRy9KGR and NiNpRJjd
SHOW: | | - or go back to the newest paste.
1
- platform: template
2
  sensors:
3
    sun_angle_with_cloudiness:
4
      friendly_name: "Cloud adjusted sun angle"
5
      unit_of_measurement: 'grader'
6
      value_template: >-
7
        {{ (states.sun.sun.attributes.elevation | float) - (states.sensor.dark_sky_cloud_coverage.state | float / 20) }}
8
# The figure which is "20" above? The higher it is, the less cloud coverage adjusts sun angle.