We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05c1ddb commit c8eb553Copy full SHA for c8eb553
homeassistant_cli/plugins/system.py
@@ -4,6 +4,7 @@
4
import click
5
from homeassistant_cli.cli import pass_context
6
import homeassistant_cli.remote as api
7
+from homeassistant_cli.config import Configuration
8
9
_LOGGING = logging.getLogger(__name__)
10
@@ -19,3 +20,12 @@ def cli(ctx):
19
20
def log(ctx):
21
"""Get errors from Home Assistant."""
22
click.echo(api.get_raw_error_log(ctx))
23
+
24
25
+@cli.command()
26
+@pass_context
27
+def health(ctx: Configuration):
28
+ """Get system health from Home Assistant."""
29
+ frame = {'type': 'system_health/info'}
30
31
+ click.echo(api.wsapi(ctx, frame, False))
0 commit comments