-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.yaml
101 lines (97 loc) · 3.15 KB
/
card.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# OpenWebRX entities card.
# Change the url_path to your webrx path and
# paste the Yaml code after selecting Manual card.
type: vertical-stack
cards:
- type: entities
entities:
- type: section
label: Status
- entity: binary_sensor.openwebrx
name: Online status
tap_action:
action: url
url_path: http://openwebsdr.my:8073/
- entity: sensor.openwebrx_users
name: Number of current users
secondary_info: last-changed
- type: section
label: General information
- entity: sensor.openwebrx_version
name: Software version
- entity: sensor.sdr_connected
type: attribute
attribute: sdr
name: Connected SDRs
- entity: sensor.openwebrx_rx
type: attribute
attribute: source
name: Last SDR switched
secondary_info: last-changed
- entity: sensor.openwebrx_rx
name: Last profile selected
- type: section
label: Alarm triggering call sign list
- entity: input_text.call_sign_list
name: call signs separated by comma and space
state_color: true
title: OpenWebRX+
show_header_toggle: false
- type: conditional
conditions:
- condition: numeric_state
entity: sensor.webrx_ft8_min_ago
below: 2
card:
type: entities
entities:
- type: section
label: FT8 decoding
- entity: sensor.openwebrx_ft8
type: attribute
attribute: callsign
icon: mdi:view-headline
name: Last decoded call (FT8)
secondary_info: last-changed
- entity: sensor.openwebrx_ft8
type: attribute
attribute: locator
name: In locator field
icon: mdi:grid
- entity: sensor.openwebrx_ft8
name: On frequency
- entity: sensor.webrx_ft8_min_ago
name: Time elapsed (hh:mm:ss)
state_color: true
# Markdown card statistics
# Statistics will be reset after OpenWebRX reboot
# Paste code in YML editor, not visual editor.
type: markdown
content: >-
Decodes since last WebRX reboot:
{#- Replace with your ham radio band profiles as defined in #}
{%- set profiles
=['6m','10m','12m','15m','17m','20m','30m','40m','80m','160m'] -%}
{% for band in profiles %}
{{band}}: {% if state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]
is defined -%}
{% if state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]['FT8'] is
defined -%}
FT8 **{{
state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]['FT8']['count']}}**,
{% endif -%}
{% if state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]['FT4'] is
defined -%}
FT4 **{{
state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]['FT4']['count']}}**,
{% endif -%}
{% if state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]['WSPR'] is
defined -%}
WSPR **{{
state_attr('sensor.openwebrx_users','wsjt')['decodes'][band]['WSPR']['count']}}**,
{% endif %}
{%- else %}none{%- endif %}
{%- endfor %}
PSK Reporter Spots: {{
state_attr('sensor.openwebrx_users','pskreporter')['spots']['count'] | int }}
title: OpenWebRX+ Decodes