Ça renvoie ça (j’arrive pas à a savoir si c’est tronqué ou pas, c’est sacrément long
)
{'getDstRule': [{'system': {'dst': {'enabled': '1', 'synced': '1', 'has_rule': '1', 'dst_rule': 'DST-02:00,M3.5.0/02:00:00,M10.5.0/03:00:00'}}}], 'getClockStatus': [{'system': {'clock_status': {'seconds_from_1970': 1743615865, 'local_time': '2025-04-02 19:44:25'}}}], 'getTimezone': [{'system': {'basic': {'timing_mode': 'ntp', 'zone_id': 'Europe/Brussels', 'timezone': 'UTC+01:00'}}}], 'getAlertTypeList': [{'msg_alarm': {'alert_type': {'alert_type_list': ['Siren', 'Tone']}}}], 'getNightVisionCapability': [{'image_capability': {'supplement_lamp': {'supplement_lamp_type': ['infrared_lamp'], 'night_vision_mode_range': ['inf_night_vision']}}}], 'getDeviceInfo': [{'device_info': {'basic_info': {'device_type': 'SMART.IPCAMERA', 'device_info': 'C210 2.0 IPC', 'features': 3, 'barcode': '', 'device_model': 'C210', 'sw_version': '1.4.5 Build 250228 Rel.54710n', 'device_name': 'C210 2.0', 'hw_version': '2.0', 'device_alias': 'Tapo_C210_B66F', 'mobile_access': '0', 'mac': 'F0-09-0D-BE-B6-6F', 'dev_id': '8021F6A5B6F5C4B4A5AB5079368E2FFE230C3C96', 'hw_id': '5FAAA6EC6A1A74A8B50B0C3302FB26FD', 'oem_id': 'A324FA71283989909AAB5B8646626D4C', 'hw_desc': '00000000000000000000000000000000', 'manufacturer_name': 'TP-LINK', 'region': 'EU', 'ffs': False, 'is_cal': True, 'avatar': 'Baby room', 'has_set_location_info': 1, 'longitude': -11036, 'latitude': 446370}}}], 'getDetectionConfig': [{'motion_detection': {'motion_det': {'enabled': 'off', 'sensitivity': 'high', 'digital_sensitivity': '50', 'people_enabled': 'off', 'vehicle_enabled': 'off', 'non_vehicle_enabled': 'off'}}}], 'getPersonDetectionConfig': [{'people_detection': {'detection': {'enabled': 'off', 'sensitivity': '50'}}}], 'getVehicleDetectionConfig': [False], 'getBCDConfig': [{'sound_detection': {'bcd': {'enabled': 'off', 'sensitivity': 'low', 'digital_sensitivity': '50'}}}], 'getPetDetectionConfig': [False], 'getBarkDetectionConfig': [False], 'getMeowDetectionConfig': [False], 'getGlassDetectionConfig': [False], 'getTamperDetectionConfig': [{'tamper_detection': {'tamper_det': {'enabled': 'off', 'sensitivity': 'medium', 'digital_sensitivity': '50'}}}], 'getLensMaskConfig': [{'lens_mask': {'lens_mask_info': {'enabled': 'off'}}}], 'getLdc': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'inf_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '5', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal', 'wtl_manual_start_flag': 'off'}, 'common': {'chroma': '50', 'luma': '50', 'sharpness': '50', 'saturation': '50', 'contrast': '50', 'inf_delay': '5', 'wd_gain': '50', 'exp_gain': '0', 'smartir_level': '100', 'auto_exp_gain_max': '0', 'wb_R_gain': '50', 'wb_B_gain': '50', 'wb_G_gain': '50', 'wtl_sensitivity': '4', 'wtl_delay': '5', 'wtl_sensitivity_day2night': '1400', 'wtl_sensitivity_night2day': '9100', 'iris_level': '160', 'lock_red_gain': '0', 'lock_gr_gain': '0', 'lock_gb_gain': '0', 'lock_blue_gain': '0', 'lock_red_colton': '0', 'lock_green_colton': '0', 'lock_blue_colton': '0', 'focus_limited': '10', 'inf_start_time': '64800', 'inf_end_time': '21600', 'wtl_start_time': '64800', 'wtl_end_time': '21600', 'inf_sensitivity_day2night': '1400', 'inf_sensitivity_night2day': '9100', 'wide_dynamic': 'off', 'high_light_compensation': 'off', 'dehaze': 'off', 'eis': 'off', 'auto_exp_antiflicker': 'off', 'inf_type': 'auto', 'inf_sensitivity': '1', 'wtl_type': 'auto', 'backlight': 'off', 'area_compensation': 'default', 'smartir': 'off', 'exp_type': 'auto', 'exp_level': '0', 'shutter': '1/25', 'style': 'standard', 'focus_type': 'manual', 'wb_type': 'auto', 'lock_source': 'local', 'smartwtl': 'auto_wtl', 'smartwtl_level': '5', 'smartwtl_digital_level': '100', 'light_freq_mode': 'auto'}}}], 'getLastAlarmInfo': [{'msg_alarm': {'chn1_msg_alarm_info': {'enabled': 'off', 'light_alarm_enabled': 'on', 'alarm_mode': ['sound', 'light'], 'alarm_type': '0', 'light_type': '1', 'sound_alarm_enabled': 'on', 'alarm_volume': 'high', 'alarm_duration': '0'}}}], 'getLedStatus': [{'led': {'config': {'enabled': 'off'}}}], 'getTargetTrackConfig': [{'target_track': {'target_track_info': {'enabled': 'off', 'track_mode': 'pantilt', 'back_time': '30', 'track_time': '0'}}}], 'getPresetConfig': [{'preset': {'preset': {'id': ['1', '2', '3'], 'name': ['Point de vue 1', 'Test', 'Point de vue 3'], 'read_only': ['0', '0', '0'], 'position_pan': ['0.377973', '0.377973', '-0.084281'], 'position_tilt': ['-0.143216', '-0.143216', '-0.143216'], 'position_zoom': []}}}], 'getFirmwareUpdateStatus': [{'cloud_config': {'upgrade_status': {'state': 'normal', 'lastUpgradingSuccess': True}}}], 'getMediaEncrypt': [{'cet': {'media_encrypt': {'enabled': 'on'}}}], 'getConnectionType': [{'link_type': 'wifi', 'ssid': 'La-box-de-buch', 'rssiValue': -54, 'rssi': '3'}], 'getAlarmConfig': [False], 'getAlarmPlan': [False], 'getSirenTypeList': [False, False], 'getSirenConfig': [False], 'getAlertConfig': [{'msg_alarm': {'chn1_msg_alarm_info': {'enabled': 'off', 'light_alarm_enabled': 'on', 'alarm_mode': ['sound', 'light'], 'alarm_type': '0', 'light_type': '1', 'sound_alarm_enabled': 'on', 'alarm_volume': 'high', 'alarm_duration': '0'}, 'capability': {'usr_def_audio_alarm_support': '1', 'usr_def_audio_alarm_max_num': '15', 'alarm_volume_support': '1', 'alarm_duration_support': '1', 'alert_event_type_support': '1', 'usr_def_start_file_id': '8195', 'usr_def_audio_type': '0', 'usr_def_audio_max_duration': '15'}, 'usr_def_audio': []}}], 'getLightTypeList': [False], 'getSirenStatus': [False, False], 'getLightFrequencyInfo': [{'image': {'common': {'chroma': '50', 'luma': '50', 'sharpness': '50', 'saturation': '50', 'contrast': '50', 'inf_delay': '5', 'wd_gain': '50', 'exp_gain': '0', 'smartir_level': '100', 'auto_exp_gain_max': '0', 'wb_R_gain': '50', 'wb_B_gain': '50', 'wb_G_gain': '50', 'wtl_sensitivity': '4', 'wtl_delay': '5', 'wtl_sensitivity_day2night': '1400', 'wtl_sensitivity_night2day': '9100', 'iris_level': '160', 'lock_red_gain': '0', 'lock_gr_gain': '0', 'lock_gb_gain': '0', 'lock_blue_gain': '0', 'lock_red_colton': '0', 'lock_green_colton': '0', 'lock_blue_colton': '0', 'focus_limited': '10', 'inf_start_time': '64800', 'inf_end_time': '21600', 'wtl_start_time': '64800', 'wtl_end_time': '21600', 'inf_sensitivity_day2night': '1400', 'inf_sensitivity_night2day': '9100', 'wide_dynamic': 'off', 'high_light_compensation': 'off', 'dehaze': 'off', 'eis': 'off', 'auto_exp_antiflicker': 'off', 'inf_type': 'auto', 'inf_sensitivity': '1', 'wtl_type': 'auto', 'backlight': 'off', 'area_compensation': 'default', 'smartir': 'off', 'exp_type': 'auto', 'exp_level': '0', 'shutter': '1/25', 'style': 'standard', 'focus_type': 'manual', 'wb_type': 'auto', 'lock_source': 'local', 'smartwtl': 'auto_wtl', 'smartwtl_level': '5', 'smartwtl_digital_level': '100', 'light_freq_mode': 'auto'}}}], 'getLightFrequencyCapability': [False], 'getChildDeviceList': [False], 'getRotationStatus': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'inf_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '5', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal', 'wtl_manual_start_flag': 'off'}}}], 'getNightVisionModeConfig': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'inf_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '5', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal', 'wtl_manual_start_flag': 'off'}}}], 'getWhitelampStatus': [{'status': 0, 'rest_time': 0}], 'getWhitelampConfig': [{'image': {'switch': {'schedule_end_time': '64800', 'schedule_start_time': '21600', 'clear_licence_plate_mode': 'off', 'switch_mode': 'common', 'rotate_type': 'off', 'flip_type': 'off', 'ldc': 'off', 'night_vision_mode': 'inf_night_vision', 'full_color_people_enhance': 'off', 'full_color_min_keep_time': '5', 'wtl_intensity_level': '5', 'wtl_force_time': '300', 'overexposure_people_suppression': 'off', 'best_view_distance': '0', 'image_scene_mode': 'normal', 'image_scene_mode_common': 'normal', 'image_scene_mode_shedday': 'normal', 'image_scene_mode_shednight': 'normal', 'image_scene_mode_autoday': 'normal', 'image_scene_mode_autonight': 'normal', 'wtl_manual_start_flag': 'off'}}}], 'getMsgPushConfig': [{'msg_push': {'chn1_msg_push_info': {'notification_enabled': 'on', 'rich_notification_enabled': 'off'}}}], 'getSdCardStatus': [{'harddisk_manage': {'hd_info': [{'hd_info_1': {'disk_name': '1', 'rw_attr': 'r', 'status': 'offline', 'detect_status': 'offline', 'write_protect': '0', 'percent': '0', 'type': 'local', 'record_duration': '0', 'record_free_duration': '0', 'record_start_time': '0', 'loop_record_status': '0', 'total_space': '0B', 'total_space_accurate': '0B', 'free_space': '0B', 'free_space_accurate': '0B', 'video_total_space': '0B', 'video_total_space_accurate': '0B', 'video_free_space': '0B', 'video_free_space_accurate': '0B', 'picture_total_space': '0B', 'picture_total_space_accurate': '0B', 'picture_free_space': '0B', 'picture_free_space_accurate': '0B', 'crossline_total_space': '0B', 'crossline_total_space_accurate': '0B', 'crossline_free_space': '0B', 'crossline_free_space_accurate': '0B', 'msg_push_total_space': '0B', 'msg_push_total_space_accurate': '0B', 'msg_push_free_space': '0B', 'msg_push_free_space_accurate': '0B'}}]}}], 'getCircularRecordingConfig': [{'harddisk_manage': {'harddisk': {'loop': 'on'}}}], 'getRecordPlan': [{'record_plan': {'chn1_channel': {'enabled': 'on', 'monday': '["0000-2400:2"]', 'tuesday': '["0000-2400:2"]', 'wednesday': '["0000-2400:2"]', 'thursday': '["0000-2400:2"]', 'friday': '["0000-2400:2"]', 'saturday': '["0000-2400:2"]', 'sunday': '["0000-2400:2"]'}}}], 'getAudioConfig': [{'audio_config': {'speaker': {'volume': '100', 'mute': 'off', 'output_device_type': 'SpeakerOut'}, 'microphone': {'sampling_rate': '8', 'channels': '1', 'encode_type': 'G711alaw', 'mute': 'off', 'volume': '100', 'input_device_type': 'MicIn', 'noise_cancelling': 'on', 'bitrate': '64', 'echo_cancelling': 'off'}}}], 'getFirmwareAutoUpgradeConfig': [{'auto_upgrade': {'common': {'enabled': 'off', 'time': '03:00', 'random_range': '120'}}}], 'getVideoQualities': [{'video': {'main': {'quality': '3', 'bitrate': '1382', 'frame_rate': '65551', 'smart_codec': 'off', 'encode_type': 'H264', 'resolution': '1920*1080', 'bitrate_type': 'vbr', 'name': 'VideoEncoder_1', 'default_bitrate': '1382'}}}], 'getVideoCapability': [{'video_capability': {'main': {'encode_types': ['H264', 'H265'], 'frame_rates': ['65551', '65556', '65561', '65566'], 'bitrates': ['256', '512', '1024', '1382', '2048'], 'bitrate_types': ['cbr', 'vbr'], 'resolutions': ['2304*1296', '1920*1080', '1280*720'], 'qualitys': ['1', '3', '5'], 'minor_stream_support': '0', 'change_fps_support': '1'}}}]}
Mais effectivement si ça remonte toutes les fonctions « automatiquement » ça peut être pratique pour le plugin, surtout couplé à la fonction getModuleInfo qui liste ce qui est dispo ou pour pas sur l’équipement en question.