/
TotalConnectClient.py
727 lines (587 loc) · 24.3 KB
/
TotalConnectClient.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
"""Total Connect Client."""
import logging
import time
import zeep
ARM_TYPE_AWAY = 0
ARM_TYPE_STAY = 1
ARM_TYPE_STAY_INSTANT = 2
ARM_TYPE_AWAY_INSTANT = 3
ARM_TYPE_STAY_NIGHT = 4
ZONE_STATUS_NORMAL = 0
ZONE_STATUS_BYPASSED = 1
ZONE_STATUS_FAULT = 2
ZONE_STATUS_TROUBLE = 8 # is also Tampered
ZONE_STATUS_LOW_BATTERY = 64
ZONE_STATUS_TRIGGERED = 256
ZONE_TYPE_SECURITY = 0
ZONE_TYPE_FIRE_SMOKE = 9
ZONE_TYPE_CARBON_MONOXIDE = 14
ZONE_BYPASS_SUCCESS = 0
GET_ALL_SENSORS_MASK_STATUS_SUCCESS = 0
class AuthenticationError(Exception):
"""Authentication Error class."""
def __init__(self, *args, **kwargs):
"""Initialize."""
Exception.__init__(self, *args, **kwargs)
class TotalConnectClient:
"""Client for Total Connect."""
INVALID_SESSION = -102
SUCCESS = 0
ARM_SUCCESS = 4500
DISARM_SUCCESS = 4500
CONNECTION_ERROR = 4101
FAILED_TO_CONNECT = -4104
USER_CODE_UNAVAILABLE = -4114
COMMAND_FAILED = -4502
BAD_USER_OR_PASSWORD = -50004
AUTHENTICATION_FAILED = -100
FEATURE_NOT_SUPPORTED = -120
MAX_REQUEST_ATTEMPTS = 10
def __init__(self, username, password, usercode="-1", auto_bypass_battery=False):
"""Initialize."""
self.soapClient = zeep.Client("https://rs.alarmnet.com/TC21api/tc2.asmx?WSDL")
self.soap_base = "self.soapClient.service."
self.applicationId = "14588"
self.applicationVersion = "1.0.34"
self.username = username
self.password = password
self.usercode = usercode
self.auto_bypass_low_battery = auto_bypass_battery
self.token = False
self._valid_credentials = (
None # None at start, True after login, False if login fails
)
self._module_flags = None
self._user = None
self.locations = {}
self.authenticate()
def request(self, request, attempts=0):
"""Send a SOAP request."""
if attempts < self.MAX_REQUEST_ATTEMPTS:
attempts += 1
response = eval(self.soap_base + request)
if response.ResultCode in (self.SUCCESS, self.FEATURE_NOT_SUPPORTED):
return zeep.helpers.serialize_object(response)
if response.ResultCode == self.INVALID_SESSION:
logging.debug(
f"total-connect-client invalid session (attempt number {attempts})."
)
self.token = False
self.authenticate()
return self.request(request, attempts)
if response.ResultCode == self.CONNECTION_ERROR:
logging.debug(
f"total-connect-client connection error (attempt number {attempts})."
)
time.sleep(3)
return self.request(request, attempts)
if response.ResultCode == self.FAILED_TO_CONNECT:
logging.debug(
f"total-connect-client failed to connect with security system "
f"(attempt number {attempts})."
)
time.sleep(3)
return self.request(request, attempts)
if response.ResultCode in (
self.BAD_USER_OR_PASSWORD,
self.AUTHENTICATION_FAILED,
self.USER_CODE_UNAVAILABLE,
):
logging.debug("total-connect-client authentication failed.")
return zeep.helpers.serialize_object(response)
logging.warning(
f"total-connect-client unknown result code "
f"{response.ResultCode} with message: {response.ResultData}."
)
return zeep.helpers.serialize_object(response)
raise Exception(
"total-connect-client could not execute request. Maximum attempts tried."
)
def authenticate(self):
"""Login to the system. Return true if successful."""
if self.is_logged_in() is True:
logging.debug("total-connect-client attempting login when logged in.")
return True
if self._valid_credentials is not False:
response = self.request(
"LoginAndGetSessionDetails(self.username, self.password, "
"self.applicationId, self.applicationVersion)"
)
if response["ResultCode"] == self.SUCCESS:
logging.debug("Login Successful")
self.token = response["SessionID"]
self._valid_credentials = True
self.populate_details(response)
return True
self._valid_credentials = False
logging.error(
f"Unable to authenticate with Total Connect. ResultCode: "
f"{response['ResultCode']}. ResultData: {response['ResultData']}"
)
logging.debug(
"total-connect-client attempting login with known bad credentials."
)
return False
def is_logged_in(self):
"""Return true if the client is logged into Total Connect service."""
return self.token is not False
def log_out(self):
"""Return true on logout of Total Connect service, or if not logged in."""
if self.is_logged_in():
response = self.request("Logout(self.token)")
if response["ResultCode"] == self.SUCCESS:
logging.info("Logout Successful")
self.token = False
return True
return False
def is_valid_credentials(self):
"""Return true if the credentials are known to be valid."""
return self._valid_credentials is True
def populate_details(self, response):
"""Populate system details."""
# not currently using info: ModuleFlags, UserInfo
location_data = response["Locations"]["LocationInfoBasic"]
self._module_flags = response["ModuleFlags"]
self._user = total_connect_user(response["UserInfo"])
for location in location_data:
location_id = location["LocationID"]
self.locations[location_id] = TotalConnectLocation(location, self)
self.get_zone_details(location_id)
self.get_panel_meta_data(location_id)
if len(self.locations) < 1:
Exception("No locations found!")
def keep_alive(self):
"""Keep the token alive to avoid server timeouts."""
logging.info("total-connect-client initiating Keep Alive")
response = self.soapClient.service.KeepAlive(self.token)
if response.ResultCode != self.SUCCESS:
self.authenticate()
return response.ResultCode
def arm_away(self, location_id):
"""Arm the system (Away)."""
return self.arm(ARM_TYPE_AWAY, location_id)
def arm_stay(self, location_id):
"""Arm the system (Stay)."""
return self.arm(ARM_TYPE_STAY, location_id)
def arm_stay_instant(self, location_id):
"""Arm the system (Stay - Instant)."""
return self.arm(ARM_TYPE_STAY_INSTANT, location_id)
def arm_away_instant(self, location_id):
"""Arm the system (Away - Instant)."""
return self.arm(ARM_TYPE_AWAY_INSTANT, location_id)
def arm_stay_night(self, location_id):
"""Arm the system (Stay - Night)."""
return self.arm(ARM_TYPE_STAY_NIGHT, location_id)
def arm(self, arm_type, location_id):
"""Arm the system. Return True if successful."""
result = self.request(
f"ArmSecuritySystem(self.token, "
f"{location_id}, "
f"{self.locations[location_id].security_device_id}, "
f"{arm_type}, "
f"{self.usercode})"
)
if result["ResultCode"] in (self.ARM_SUCCESS, self.SUCCESS):
return True
if result["ResultCode"] == self.COMMAND_FAILED:
logging.warning("Could not arm system. Check if a zone is faulted.")
return False
logging.error(
f"Could not arm system. "
f"ResultCode: {result['ResultCode']}. "
f"ResultData: {result['ResultData']}"
)
return False
def arm_custom(self, arm_type, location_id):
"""Arm custom the system. Return true if successul."""
ZONE_INFO = {"ZoneID": "12", "ByPass": False, "ZoneStatus": ZONE_STATUS_NORMAL}
ZONES_LIST = {}
ZONES_LIST[0] = ZONE_INFO
CUSTOM_ARM_SETTINGS = {"ArmMode": "1", "ArmDelay": "5", "ZonesList": ZONES_LIST}
result = self.request(
f"CustomArmSecuritySystem(self.token, "
f"{location_id}, "
f"{self.locations[location_id].security_device_id}, "
f"{arm_type}, {self.usercode}, "
f"{CUSTOM_ARM_SETTINGS})"
)
if result["ResultCode"] != self.SUCCESS:
logging.error(
f"Could not arm custom. ResultCode: {result['ResultCode']}. "
f"ResultData: {result['ResultData']}"
)
return False
# remove after this is all working
print(
f"arm_custom ResultCode: {result['ResultCode']}. "
f"arm_custom ResultData: {result['ResultData']}"
)
return True
def get_custom_arm_settings(self, location_id):
"""Get custom arm settings. Return true if successul."""
result = self.request(
f"GetCustomArmSettings(self.token, "
f"{location_id}, "
f"{self.locations[location_id].security_device_id})"
)
if result["ResultCode"] != self.SUCCESS:
logging.error(
f"Could not arm custom. ResultCode: {result['ResultCode']}. "
f"ResultData: {result['ResultData']}"
)
return False
return result
def get_panel_meta_data(self, location_id):
"""Get all meta data about the alarm panel."""
result = self.request(
f"GetPanelMetaDataAndFullStatus(self.token, {location_id}, 0, 0, 1)"
)
if result["ResultCode"] != self.SUCCESS:
logging.error(
f"Could not retrieve panel meta data. "
f"ResultCode: {result['ResultCode']}. ResultData: {result['ResultData']}"
)
if result is not None:
self.locations[location_id].set_status(result["PanelMetadataAndStatus"])
else:
logging.warning("Panel_meta_data is empty.")
return result
def zone_status(self, location_id, zone_id):
"""Get status of a zone."""
z = self.locations[location_id].zones.get(zone_id)
if z is None:
logging.error(f"Zone {zone_id} does not exist.")
return None
return z.status
def get_armed_status(self, location_id):
"""Get the status of the panel."""
self.get_panel_meta_data(location_id)
return self.locations[location_id].arming_state
def disarm(self, location_id):
"""Disarm the system. Return True if successful."""
result = self.request(
f"DisarmSecuritySystem(self.token, "
f"{location_id}, "
f"{self.locations[location_id].security_device_id}, "
f"{self.usercode})"
)
if result["ResultCode"] in (self.DISARM_SUCCESS, self.SUCCESS):
logging.info("System Disarmed")
return True
logging.error(
f"Could not disarm system. "
f"ResultCode: {result['ResultCode']}. "
f"ResultData: {result['ResultData']}"
)
return False
def zone_bypass(self, zone_id, location_id):
"""Bypass a zone."""
response = self.soapClient.service.Bypass(
self.token,
location_id,
self.locations[location_id].security_device_id,
zone_id,
self.usercode,
)
if response.ResultCode == self.INVALID_SESSION:
self.authenticate()
response = self.soapClient.service.Bypass(
self.token,
location_id,
self.locations[location_id].security_device_id,
zone_id,
self.usercode,
)
logging.info(f"Bypass Result Code: {response.ResultCode}.")
if response.ResultCode == ZONE_BYPASS_SUCCESS:
self.locations[location_id].zones[zone_id].bypass()
else:
raise Exception(
"Could not bypass zone. ResultCode: "
+ str(response.ResultCode)
+ ". ResultData: "
+ str(response.ResultData)
)
return self.SUCCESS
def get_zone_details(self, location_id):
"""Get Zone details. Return True if successful."""
result = self.request(
"GetZonesListInStateEx_V1(self.token, "
+ str(location_id)
+ ', {"int": ["1"]}, 0)'
)
if result["ResultCode"] == self.FEATURE_NOT_SUPPORTED:
logging.warning(
"Getting Zone Details is a feature not supported by "
"your Total Connect account."
)
return False
if result["ResultCode"] != self.SUCCESS:
logging.error(
f"Could not get zone details. "
f"ResultCode: {result['ResultCode']}. ResultData: {result['ResultData']}."
)
return False
zone_status = result.get("ZoneStatus")
if zone_status is not None:
return self.locations[location_id].set_zone_details(zone_status)
logging.error(
f"Could not get zone details. "
f"ResultCode: {result['ResultCode']}. ResultData: {result['ResultData']}."
)
return True
class TotalConnectLocation:
"""TotalConnectLocation class."""
DISARMED = 10200
DISARMED_BYPASS = 10211
ARMED_AWAY = 10201
ARMED_AWAY_BYPASS = 10202
ARMED_AWAY_INSTANT = 10205
ARMED_AWAY_INSTANT_BYPASS = 10206
ARMED_CUSTOM_BYPASS = 10223
ARMED_STAY = 10203
ARMED_STAY_BYPASS = 10204
ARMED_STAY_INSTANT = 10209
ARMED_STAY_INSTANT_BYPASS = 10210
ARMED_STAY_NIGHT = 10218
ARMING = 10307
DISARMING = 10308
ALARMING = 10207
ALARMING_FIRE_SMOKE = 10212
ALARMING_CARBON_MONOXIDE = 10213
def __init__(self, location_info_basic, parent):
"""Initialize based on a 'LocationInfoBasic'."""
self.location_id = location_info_basic["LocationID"]
self.location_name = location_info_basic["LocationName"]
self._photo_url = location_info_basic["PhotoURL"]
self._module_flags = location_info_basic["LocationModuleFlags"]
self.security_device_id = location_info_basic["SecurityDeviceID"]
self._device_list = location_info_basic["DeviceList"]
self.parent = parent
self.ac_loss = None
self.low_battery = None
self.cover_tampered = None
self.last_updated_timestamp_ticks = None
self.configuration_sequence_number = None
self.arming_state = None
self.zones = {}
def __str__(self):
"""Return a text string that is printable."""
return (
f"LocationID: {self.location_id}\n"
f"LocationName: {self.location_name}\n"
f"PhotoURL: {self._photo_url}\n"
f"LocationModuleFlags: {self._module_flags}\n"
f"SecurityDeviceID: {self.security_device_id}\n"
f"DeviceList: {self._device_list}\n"
f"AcLoss: {self.ac_loss}\n"
f"LowBattery: {self.low_battery}\n"
f"IsCoverTampered: {self.cover_tampered}\n"
f"Arming State: {self.arming_state}\n"
)
def set_zone_details(self, zone_status):
"""Update from GetZonesListInStateEx_V1. Return true if successful."""
zones = zone_status.get("Zones")
if zones is None:
return False
zone_info = zones.get("ZoneStatusInfoWithPartitionId")
if zone_info is None:
return False
# probabaly shouldn't clear zones
# self.locations[location_id].zones.clear()
for zone in zone_info:
self.zones[zone["ZoneID"]] = TotalConnectZone(zone)
return True
def set_status(self, data):
"""Update from 'PanelMetadataAndStatus'. Return true on success."""
self.ac_loss = data.get("IsInACLoss")
self.low_battery = data.get("IsInLowBattery")
self.cover_tampered = data.get("IsCoverTampered")
self.last_updated_timestamp_ticks = data.get("LastUpdatedTimestampTicks")
self.configuration_sequence_number = data.get("ConfigurationSequenceNumber")
self.arming_state = data["Partitions"]["PartitionInfo"][0]["ArmingState"]
zones = data.get("Zones")
if zones is None:
return False
zone_info = zones.get("ZoneInfo")
if zone_info is None:
return False
for zone in zone_info:
if zone["ZoneID"] in self.zones:
self.zones[zone["ZoneID"]].update(zone)
else:
self.zones[zone["ZoneID"]] = TotalConnectZone(zone)
if (
self.zones[zone["ZoneID"]].is_low_battery()
and self.parent.auto_bypass_low_battery
):
self.parent.zone_bypass(zone["ZoneID"], self.location_id)
return True
def is_low_battery(self):
"""Return true if low battery."""
return self.low_battery is True
def is_ac_loss(self):
"""Return true if AC loss."""
return self.ac_loss is True
def is_cover_tampered(self):
"""Return true if cover is tampered."""
return self.cover_tampered is True
def is_arming(self):
"""Return true if the system is in the process of arming."""
return self.arming_state == self.ARMING
def is_disarming(self):
"""Return true if the system is in the process of disarming."""
return self.arming_state == self.DISARMING
def is_pending(self):
"""Return true if the system is pending an action."""
return self.is_disarming() or self.is_arming()
def is_disarmed(self):
"""Return True if the system is disarmed."""
return self.arming_state in (self.DISARMED, self.DISARMED_BYPASS)
def is_armed_away(self):
"""Return True if the system is armed away in any way."""
return self.arming_state in (
self.ARMED_AWAY,
self.ARMED_AWAY_BYPASS,
self.ARMED_AWAY_INSTANT,
self.ARMED_AWAY_INSTANT_BYPASS,
)
def is_armed_custom_bypass(self):
"""Return True if the system is armed custom bypass in any way."""
return self.arming_state == self.ARMED_CUSTOM_BYPASS
def is_armed_home(self):
"""Return True if the system is armed home/stay in any way."""
return self.arming_state in (
self.ARMED_STAY,
self.ARMED_STAY_BYPASS,
self.ARMED_STAY_INSTANT,
self.ARMED_STAY_INSTANT_BYPASS,
self.ARMED_STAY_NIGHT,
)
def is_armed_night(self):
"""Return True if the system is armed night in any way."""
return self.arming_state == self.ARMED_STAY_NIGHT
def is_armed(self):
"""Return True if the system is armed in any way."""
return (
self.is_armed_away()
or self.is_armed_custom_bypass()
or self.is_armed_home()
or self.is_armed_night()
)
def is_triggered_police(self):
"""Return True if the system is triggered for police or medical."""
return self.arming_state == self.ALARMING
def is_triggered_fire(self):
"""Return True if the system is triggered for fire or smoke."""
return self.arming_state == self.ALARMING_FIRE_SMOKE
def is_triggered_gas(self):
"""Return True if the system is triggered for carbon monoxide."""
return self.arming_state == self.ALARMING_CARBON_MONOXIDE
def is_triggered(self):
"""Return True if the system is triggered in any way."""
return (
self.is_triggered_fire()
or self.is_triggered_gas()
or self.is_triggered_police()
)
class TotalConnectZone:
"""TotalConnectZone class."""
def __init__(self, zone):
"""Initialize."""
self.id = zone.get("ZoneID")
self.description = zone.get("ZoneDescription")
self.status = zone.get("ZoneStatus")
self.partition = zone.get("PartitionID")
self.zone_type_id = zone.get("ZoneTypeId")
self.can_be_bypassed = zone.get("CanBeBypassed")
def update(self, zone):
"""Update the zone."""
if self.id == zone.get("ZoneID"):
self.description = zone.get("ZoneDescription")
self.partition = zone.get("PartitionID")
self.status = zone.get("ZoneStatus")
else:
raise Exception("ZoneID does not match in TotalConnectZone.")
def __str__(self):
"""Return a string that is printable."""
text = "ZoneID: " + str(self.id) + "\n"
text = text + "ZoneDescription: " + str(self.description) + "\n"
text = text + "ZoneStatus: " + str(self.status) + "\n"
text = text + "ZonePartition: " + str(self.partition) + "\n"
text = text + "ZoneTypeID: " + str(self.zone_type_id) + "\n"
return text
def is_bypassed(self):
"""Return true if the zone is bypassed."""
return self.status & ZONE_STATUS_BYPASSED > 0
def bypass(self):
"""Set is_bypassed status."""
self.status = ZONE_STATUS_BYPASSED
def is_faulted(self):
"""Return true if the zone is faulted."""
return self.status & ZONE_STATUS_FAULT > 0
def is_tampered(self):
"""Return true if zone is tampered."""
return self.status & ZONE_STATUS_TROUBLE > 0
def is_low_battery(self):
"""Return true if low battery."""
return self.status & ZONE_STATUS_LOW_BATTERY > 0
def is_troubled(self):
"""Return true if zone is troubled."""
return self.status & ZONE_STATUS_TROUBLE > 0
def is_triggered(self):
"""Return true if zone is triggered."""
return self.status & ZONE_STATUS_TRIGGERED > 0
def is_type_button(self):
"""Return true if zone is a button."""
return self.zone_type_id == ZONE_TYPE_SECURITY and self.can_be_bypassed == 0
def is_type_security(self):
"""Return true if zone type is security."""
return self.zone_type_id == ZONE_TYPE_SECURITY
def is_type_fire(self):
"""Return true if zone type is fire or smoke."""
return self.zone_type_id == ZONE_TYPE_FIRE_SMOKE
def is_type_carbon_monoxide(self):
"""Return true if zone type is carbon monoxide."""
return self.zone_type_id == ZONE_TYPE_CARBON_MONOXIDE
class total_connect_user:
"""User for Total Connect."""
def __init__(self, user_info):
"""Initialize based on UserInfo from LoginAndGetSessionDetails."""
self._user_id = user_info["UserID"]
self._username = user_info["Username"]
features = dict(x.split("=") for x in user_info["UserFeatureList"].split(","))
self._master_user = features["Master"] == "1"
self._user_admin = features["User Administration"] == "1"
self._config_admin = features["Configuration Administration"] == "1"
if self.security_problem():
logging.warning(
f"Total Connect user {self._username} has one or "
"more permissions that are not necessary. Remove "
"permissions from this user or create a new user "
"with minimal permissions."
)
def security_problem(self):
"""Run security checks. Return true if problem."""
problem = False
if self._master_user:
logging.warning(f"User {self._username} is a master user.")
problem = True
if self._user_admin:
logging.warning(f"User {self._username} is a user administrator.")
problem = True
if self._config_admin:
logging.warning(
f"User {self._username} " "is a configuration administrator."
)
problem = True
return problem
def __str__(self):
"""Return a string that is printable."""
return (
f"Username: {self._username}\n"
f"UserID: {self._user_id}\n"
f"Master User: {self._master_user}\n"
f"User Administrator: {self._user_admin}\n"
f"Configuration Administrator: {self._config_admin}\n"
)