-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest.yaml
33 lines (32 loc) · 1008 Bytes
/
rest.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
# webrx version (status)
- resource: http://9v1kg.bpmsg.com:8073/status.json
sensor:
- name: "OpenWebRX_version"
unique_id: This_should_be_a_unique_id_for_webrx_status_0001
value_template: "{{ value_json.version }}"
json_attributes:
- receiver
- max_clients
- sdrs
icon: mdi:git
availability: "{{ is_state('binary_sensor.openwebrx','on') }}"
# webrx users
- resource: http://9v1kg.bpmsg.com:8073/metrics.json
sensor:
- name: "OpenWebRX_users"
unique_id: This_should_be_a_unique_id_for_webrx_users_0002
value_template: "{{ value_json.openwebrx.users | int }}"
json_attributes:
- pskreporter
- wsprnet
- decoding
- wsjt
icon: >
{% if this.state == '0' %}
mdi:account-off
{% elif this.state == '1' %}
mdi:account
{% else %}
mdi:account-multiple
{% endif %}
availability: "{{ is_state('binary_sensor.openwebrx','on') }}"