@@ -14,7 +14,7 @@ async def info_command(spas, args):
14
14
for spa in spas :
15
15
print (f"= Spa '{ spa .name } ' =\n " )
16
16
if args .all or args .status or args .location or args .locks :
17
- status = await spa .get_status ()
17
+ status = await spa .get_status_full ()
18
18
19
19
if args .all or args .status :
20
20
print ("== Status ==" )
@@ -32,13 +32,13 @@ async def info_command(spas, args):
32
32
33
33
if args .all or args .pumps :
34
34
print ("== Pumps ==" )
35
- for pump in await spa . get_pumps () :
35
+ for pump in status . pumps :
36
36
print (pump )
37
37
print ()
38
38
39
39
if args .all or args .lights :
40
40
print ("== Lights ==" )
41
- for light in await spa . get_lights () :
41
+ for light in status . lights :
42
42
print (light )
43
43
print ()
44
44
@@ -70,6 +70,12 @@ async def info_command(spas, args):
70
70
pprint (await energy_usage_day )
71
71
print ()
72
72
73
+ if args .all or args .sensors :
74
+ print ("== Sensors ==" )
75
+ for sensor in status .sensors :
76
+ print (sensor )
77
+ print ()
78
+
73
79
if args .all or args .debug :
74
80
debug_status = await spa .get_debug_status ()
75
81
print ("== Debug status ==" )
@@ -152,6 +158,7 @@ async def main(argv):
152
158
info_parser .add_argument ("--reminders" , action = "store_true" )
153
159
info_parser .add_argument ("--locks" , action = "store_true" )
154
160
info_parser .add_argument ("--debug" , action = "store_true" )
161
+ info_parser .add_argument ("--sensors" , action = "store_true" )
155
162
info_parser .add_argument ("--energy" , action = "store_true" )
156
163
157
164
set_parser = subparsers .add_parser ("set" , help = "Change settings on the spa" )
0 commit comments