Skip to content

Commit b7b18e1

Browse files
committed
docs(en): base service page
1 parent 15fbe0b commit b7b18e1

1 file changed

Lines changed: 120 additions & 1 deletion

File tree

‎docs/services/base.md‎

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,120 @@
1-
# Base
1+
# Base service
2+
3+
<preview-service name="base" />
4+
5+
The main card of the service.
6+
Other services are created on the basis of this service.
7+
8+
## Title
9+
10+
Title service
11+
12+
```yaml
13+
title: Home Assistant
14+
```
15+
16+
## Description
17+
18+
Additional description, which is displayed right below the title.
19+
This field is convenient when you have two similar services, but they need to be differentiated somehow.
20+
21+
```yaml
22+
description: Home automation
23+
```
24+
25+
## Link
26+
27+
Link to service. It is used when clicking on the icon and title.
28+
It is also used to check [status](#status) availability.
29+
30+
```yaml
31+
link: https://home-assistant.home.local/
32+
```
33+
34+
## Icon
35+
36+
Service icon. Allows you to quickly find the required item.
37+
This field can be very flexibly customized by combining different parameters.
38+
39+
###
40+
```yaml
41+
icon:
42+
name: simple-icons:homeassistant
43+
bubble: true
44+
```
45+
46+
or from local files:
47+
48+
```yaml
49+
icon:
50+
url: icons/homeassistant.svg
51+
background: '#eee'
52+
```
53+
54+
::: warning Settings
55+
See [icons](../reference/icons.md) for details.
56+
:::
57+
58+
## Status
59+
60+
Mafl knows how to check the health of the services in the link you provided.
61+
62+
```yaml
63+
status:
64+
enabled: true
65+
interval: 60 # need not be specified
66+
```
67+
68+
### `enabled`
69+
70+
Enabling status
71+
72+
Values: `true`, `false`
73+
74+
Default: `false`
75+
76+
### `interval`
77+
78+
Status Update Interval.
79+
80+
Values: `number`
81+
82+
Default: `60` sec
83+
84+
::: warning
85+
We do not recommend changing the interval. This can cause a heavy load on the system if you have a lot of different services.
86+
:::
87+
88+
## Examples
89+
90+
### Base service
91+
92+
::: code-group
93+
```yaml [config.yml]
94+
services:
95+
- title: Home Assistant
96+
description: Home automation
97+
link: https://home-assistant.home.local/
98+
icon:
99+
name: simple-icons:homeassistant
100+
bubble: true
101+
color: '#3dbcf3'
102+
```
103+
:::
104+
105+
### Status Tracking
106+
107+
::: code-group
108+
```yaml [config.yml]
109+
services:
110+
- title: Home Assistant
111+
description: Home automation
112+
link: https://home-assistant.home.local/
113+
icon:
114+
name: simple-icons:homeassistant
115+
bubble: true
116+
color: '#3dbcf3'
117+
status:
118+
enabled: true
119+
```
120+
:::

0 commit comments

Comments
 (0)