-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand_line.yaml
26 lines (24 loc) · 952 Bytes
/
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
- sensor:
name: Supervisor Updates
command: 'curl -sS -X GET http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"newest_version":.data.version_latest,"current_version":.data.version,"update_available":.data.update_available,"addons":[.data.addons[] | select(.update_available)]}'''
value_template: "{{ value_json.addons | length }}"
unit_of_measurement: "pending update(s)"
json_attributes:
- update_available
- newest_version
- current_version
- addons
- sensor:
name: Shopping List
unique_id: shopping_list
command: python3 /config/tools/shopping_list.py
- sensor:
name: Calvin and Hobbes
unique_id: calvin_and_hobbes
icon: mdi:thought-bubble-outline
command: "shuf calvinandhobbes.json | head -1"
scan_interval: 21600
value_template: "{{ value_json.uri }}"
json_attributes:
- goComicsUrl
- publishedDate