Skip to content

Cloud coverage over floor plan card "darken" #404

Closed Answered by Trzinka
Trzinka asked this question in Q&A
Discussion options

You must be logged in to vote

I found some sort of instant solution!

If this works it will be great because I won't need the following anymore:

A sensor that determines what part of the day it is:

  - platform: template
    sensors:
      del_dneva:
        friendly_name: "Del dneva"
        value_template: >
          {% set current_hour = strptime(states('sensor.time'), "%H:%M").hour %}
          {% set sun_state = states('sun.sun') %}
          {% if sun_state == "below_horizon" and current_hour < 22 %}
            Noč
          {% elif sun_state == "above_horizon" and current_hour < 6 %}
            Jutro
          {% elif '09:00' <= states('sensor.time') <= '11:45' %}
            Dopoldan
          {% elif '11:45…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Trzinka
Comment options

Comment options

You must be logged in to vote
5 replies
@Trzinka
Comment options

@OzGav
Comment options

@Trzinka
Comment options

@OzGav
Comment options

@Trzinka
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Trzinka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants