-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensors.yaml
64 lines (64 loc) · 3.14 KB
/
sensors.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
- platform: time_date
display_options:
- 'time'
- 'date'
- platform: template
sensors:
decimal_time:
value_template: '{{(now().strftime("%H") | int) + (now().strftime("%M")|int / 60) | round(2)}}'
tautulli_streams:
value_template: '{{ states.sensor.tautulli.attributes.stream_count }}'
icon_template: mdi:cloud-upload-outline
friendly_name: 'Streams'
unit_of_measurement: ' '
tautulli_transcodes:
value_template: '{{ states.sensor.tautulli.attributes.stream_count_transcode }}'
icon_template: mdi:cloud-upload
friendly_name: 'Transcodes'
unit_of_measurement: ' '
ender_3_pro_print_time_remaining:
value_template: >
{% set minutes = (states.sensor.ender_3_pro_time_remaining.state|int/60) | int %}{% set hours = (minutes/60) |int %}{% set minutes = minutes-(hours*60)%}{% set seconds = states.sensor.ender_3_pro_time_remaining.state|int - (minutes*60) - ((hours*60)*60) %}{%if hours==0 %}{% elif hours==1%}{{hours}} hour, {% else %}{{hours}} hours, {% endif %}{%if minutes==0 %}{% elif minutes==1%}{{minutes}} minute{% else %}{{minutes}} minutes{% endif %}{% if hours == 0 and minutes == 0 and seconds > 30 %}Less than a minute{%elif hours == 0 and minutes == 0 and seconds == 0 and states.sensor.ender_3_pro_print_job_percentage.state == "100"%}Print Complete{%elif states.sensor.ender_3_pro_time_remaining.state == "unknown" %}Calculating...{%elif hours == 0 and minutes == 0 and seconds <= 30 and states.sensor.ender_3_pro_time_remaining != "unknown" %}A few seconds{%endif%}
friendly_name: 'Time Remaining'
ender_3_pro_print_job_percentage:
value_template: '{{ states.sensor.ender_3_pro_job_percentage.state|int }}'
friendly_name: 'Job Progress'
unit_of_measurement: '%'
brightness_pantry:
value_template: >
{% if states.light.pantry.state == 'off'%}
0
{% elif states.light.pantry.state == 'on' %}
{{states.light.pantry.attributes.brightness | int}}
{% endif %}
brightness_lr:
value_template: >
{% if states.light.livingroom.state == 'off'%}
0
{% elif states.light.livingroom.state == 'on' %}
{{states.light.livingroom.attributes.brightness | int}}
{% endif %}
ender_bed_temp_actual:
value_template: '{{ (((states.sensor.ender_3_pro_actual_bed_temp.state | int) - 32) / (9/5) )| int }}'
unit_of_measurement: '°C'
ender_bed_temp_target:
value_template: '{{ (((states.sensor.ender_3_pro_target_bed_temp.state | int) - 32) / (9/5) )| int }}'
unit_of_measurement: '°C'
ender_ext_temp_actual:
value_template: '{{ (((states.sensor.ender_3_pro_actual_tool0_temp.state | int) - 32) / (9/5) )| int }}'
unit_of_measurement: '°C'
ender_ext_temp_target:
value_template: '{{ (((states.sensor.ender_3_pro_target_tool0_temp.state | int) - 32) / (9/5) )| int }}'
unit_of_measurement: '°C'
- platform: tautulli
api_key: !secret tautulli
host: 10.0.0.109
scan_interval: 5
- platform: random
name: whitenoise
minimum: 1
maximum: 8
- platform: darksky
api_key: !secret darksky
monitored_conditions:
- icon