-
Notifications
You must be signed in to change notification settings - Fork 52
/
command_line.yaml
53 lines (46 loc) · 1.34 KB
/
command_line.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
# - sensor:
# name: Electric Utilities Daily
# scan_interval: 3600
# command: !secret utilities_curl_daily
# value_template: "{{ value_json.Kwh | float }}"
# unit_of_measurement: "kWh"
# json_attributes:
# - ReadDate
- sensor:
name: Electric Utilities Summary
scan_interval: 3600
command: !secret utilities_curl_summary
value_template: "{{ value_json.TotalUsage | float }}"
unit_of_measurement: "kWh"
json_attributes:
- TotalCost
- MinUsage
- MaxUsage
- AvgUsage
- StartDate
- EndDate
- sensor:
name: Utilities Cycle Start
scan_interval: 60
command: !secret utilities_curl_start
value_template: "{{ value }}"
- sensor:
name: Utilities Cycle End
scan_interval: 60
command: !secret utilities_curl_end
value_template: "{{ value }}"
- sensor:
name: CPU Temperature
command: "echo $(($(cat /sys/class/thermal/thermal_zone0/temp)/1000))"
unit_of_measurement: "°F"
value_template: "{{ ((value | int) * 9 / 5) + 32 | round(1) }}"
- sensor:
name: Cellular Modem Power
scan_interval: 5
command: "if $(lsusb | grep -q 1e0e); then echo on; else echo off; fi"
- sensor:
name: Traefik URLs
command: "/config/scripts/traefik_urls.sh"
value_template: "{{ value_json.urls | length }}"
json_attributes:
- urls