mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Move Example resources to Troubleshooting for easier readability of NUT (#38502)
* Move Example resources section into Troubleshooting * Change example to shell * Remove extra blank line
This commit is contained in:
parent
e8f3cff89a
commit
18a5b7a6a5
@ -332,12 +332,19 @@ automation:
|
|||||||
message: "The UPS lost power and is now on battery"
|
message: "The UPS lost power and is now on battery"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example resources
|
## Troubleshooting
|
||||||
|
|
||||||
Given the following example output from NUT (your variables may differ):
|
### Using NUT to list all variables
|
||||||
|
|
||||||
```yaml
|
The NUT server provides "variables" about your power device. If you
|
||||||
$ upsc ups_name@192.168.11.5
|
have command line access to the system running your NUT server, you
|
||||||
|
can query NUT directly using the `upsc` command.
|
||||||
|
|
||||||
|
Below is an example where the NUT server is configured with a device
|
||||||
|
named `my_ups`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ upsc my_ups
|
||||||
ups.timer.reboot: 0
|
ups.timer.reboot: 0
|
||||||
battery.voltage: 27.0
|
battery.voltage: 27.0
|
||||||
ups.firmware.aux: L3 -P
|
ups.firmware.aux: L3 -P
|
||||||
@ -373,11 +380,6 @@ output.voltage: 121.50
|
|||||||
output.voltage.nominal: 120
|
output.voltage.nominal: 120
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the values from the left hand column. Support is included for most
|
|
||||||
values with `ups`, `battery`, `input` and `output` prefixes.
|
|
||||||
|
|
||||||
## Troubleshooting
|
|
||||||
|
|
||||||
### Using NUT to list all commands
|
### Using NUT to list all commands
|
||||||
|
|
||||||
The NUT server provides commands for controlling your power device. If
|
The NUT server provides commands for controlling your power device. If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user