-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinary_sensor.yaml
49 lines (39 loc) · 1.36 KB
/
binary_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
44
45
46
47
48
49
- platform: workday
name: schoolday
country: US
add_holidays:
- '2019-10-09'
###
### Not currently using these elevation sensors but they make a great logging tool to see
### when they would be in effect for these settings, historically
###
- platform: threshold
name: "sun elevation"
upper: 15
entity_id: sensor.sun_elevation
- platform: threshold
name: "sun elevation weather check"
upper: 40
entity_id: sensor.sun_elevation
- platform: threshold
entity_id: sensor.washer_running_filter
name: Washer running
device_class: running
upper: 10
hysteresis: 0.1
# - platform: threshold
# entity_id: sensor.zplug3_power
# name: Nebulizer running
# device_class: running
# upper: 10
- platform: template
sensors:
new_gamedeals_free:
value_template: >
{% set free = 0 %}
{% if ((state_attr('sensor.reddit_gamedeals', 'posts')[ (states('input_number.gamedeals_free_index')|int) ].title) is search('100%', ignorecase=True) ) %}
{% if ( state_attr('sensor.reddit_gamedeals', 'posts')[ (states('input_number.gamedeals_free_index')|int) ].score) > (states('input_number.gamedeals_free_score')|int) %}
{% set free = 1 %}
{% endif %}
{% endif %}
{{ free > 0}}