mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
Add Linux detail
This commit is contained in:
parent
a56fc22fe3
commit
46955859c8
@ -58,12 +58,19 @@ The table contains types and their argument to use in your `configuration.yaml`
|
|||||||
| last_boot | |
|
| last_boot | |
|
||||||
| since_last_boot | |
|
| since_last_boot | |
|
||||||
|
|
||||||
|
## {% linkable_title Linux specific %}
|
||||||
|
|
||||||
**Windows Specific:**
|
To retrieve all available network interfaces on a Linux System, execute the `ifconfig` command.
|
||||||
|
|
||||||
When running this component on windows, `eth0` is not valid a valid network name. Typically, the default interface would be called `Local Area Connection`, so your config might look like
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ ifconfig -a | sed 's/[ \t].*//;/^$/d'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## {% linkable_title Windows specific %}
|
||||||
|
|
||||||
|
When running this platform on Microsoft Windows, Typically, the default interface would be called `Local Area Connection`, so your configuration might look like:
|
||||||
|
|
||||||
|
```yaml
|
||||||
sensor:
|
sensor:
|
||||||
- platform: systemmonitor
|
- platform: systemmonitor
|
||||||
resources:
|
resources:
|
||||||
@ -71,9 +78,9 @@ sensor:
|
|||||||
arg: 'Local Area Connection'
|
arg: 'Local Area Connection'
|
||||||
```
|
```
|
||||||
|
|
||||||
If you need to use some other interface, open a command prompt and type `ipconfig` to list all interface names. For example a wireless connection output from `ip_config` might look like
|
If you need to use some other interface, open a commandline prompt and type `ipconfig` to list all interface names. For example a wireless connection output from `ifconfig` might look like:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
Wireless LAN adapter Wireless Network Connection:
|
Wireless LAN adapter Wireless Network Connection:
|
||||||
|
|
||||||
Media State . . . . . . . . . . . : Media disconnected
|
Media State . . . . . . . . . . . : Media disconnected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user