-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
authentic-weather-sensor.yaml
43 lines (43 loc) · 2.5 KB
/
authentic-weather-sensor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
authentic_weather:
friendly_name_template: >
{% set home = states.weather.home.state %}
{% if home == 'exceptional' or home == 'sunny' %}
{{ [ "Fucking love is in the air", "Take off your shirt and get wet", "Time to put on my coolest shades", "Sun fucking glasses", "It's fucking alright today", "Not amazeballs but also not fucking shitty", "Fucking Amaze Balls", "So fucking nice outside, holy schmoly."] | random }}
{% elif home == 'rainy' %}
{{ [ "It's fucking raining", "Get your fucking umbrella", "Shitloads of rain is awaiting you", "It rains cats and dogs", "Meh... Just stay in bed."] | random }}
{% elif home == 'snowy' or home == 'snowy-rainy' %}
{{ [ "Holy fucking snow", "Are you freezing fucking serious?", "Can't see because fucking snow", "It's fucking skiing time", "Hello? yes, this is snow- man."] | random }}
{% elif home == 'windy' %}
{{ [ "Fucking thunder storm", "It's getting fucking dark", "It's fucking windy", "The storm is coming - May the Force be with you", "Hello? yes, this is snow- man."] | random }}
{% elif home == 'fog' %} It's fucking foggy.
{% elif home == 'cloudy' or home == 'partlycloudy' %}
{{ [ "It's fucking cloudy", "It's just fucking grey", "Fucking fifty shades of grey."] | random }}
{% elif home == 'partlycloudy' or home == 'clear-night' %}
{{ [ "Totally not shitty", "It’s like a meh… kinda day."] | random }}
{% elif home == 'hail' %} HAIL
{% elif home == 'lightning' %} Fucking thunder storm.
{% else %} idk {% endif %}
value_template: >-
{{ state_attr('weather.home','temperature') }}
unit_of_measurement: "°C"
icon_template: >-
{% set home = states.weather.home.state %}
{% if home == 'exceptional' or home == 'sunny' %}
mdi:weather-sunny
{% elif home == 'rainy' %}
mdi:weather-rainy
{% elif home == 'snowy' or home == 'snowy-rainy' %}
mdi:weather-snowy
{% elif home == 'windy' %}
mdi:weather-windy
{% elif home == 'fog' %}
mdi:weather-fog
{% elif home == 'cloudy' or home == 'partlycloudy' %}
mdi:weather-partly-cloudy
{% elif home == 'partlycloudy' or home == 'clear-night' %}
mdi:weather-night-partly-cloudy
{% elif home == 'hail' %}
mdi:weather-hail
{% elif home == 'lightning' %}
mdi:weather-lightning
{% else %} mdi:balloon {% endif %}