You can find set_ps in this js file.
https://github.com/al-one/hass-xiaomi-miot/files/7922104/yeelink.light.bslamp2.js.txt
return _callMiSDKMethod("set_ps", ["pseudo_beacon", "4097|" + keyValue], callback);
return _callMiSDKMethod("set_ps", ["cfg_save_state", s], callback);
return _callMiSDKMethod("set_ps", ["cfg_kid_lock", s], callback);
return _callMiSDKMethod("set_ps", ["cfg_bg_proact", s], callback);
return _callMiSDKMethod("set_ps", ["cfg_pomodoro", string], callback);
return _callMiSDKMethod("set_ps", ["cfg_pomodoro", "00"], callback);
return _callMiSDKMethod("set_ps", ["cfg_pomodoro", string], callback);
return _callMiSDKMethod("set_ps", ["cfg_kidmode", param], callback);
return _callMiSDKMethod("set_ps", ["cfg_shortkey", string], callback);
return _callMiSDKMethod("set_ps", ["nightlight", state], callback);
return _callMiSDKMethod("set_ps", ["nightlight", state], callback);
return _callMiSDKMethod("set_ps", ["nighttime", nightlightString], callback);
return _callMiSDKMethod("set_ps", ["nighttime", enableStr], callback);
return _callMiSDKMethod("set_ps", ["cfg_smart_switch", enableStr], callback);
return _callMiSDKMethod("set_ps", ["miband_sleep", enabled ? "1" : "0"], callback);
return _callMiSDKMethod("set_ps", ["cfg_fast_scenes", state], callback);
return _callMiSDKMethod("set_ps", ["cfg_init_power", state], callback);
return _callMiSDKMethod('set_ps', ['sensor_pir', param], callback);
return _callMiSDKMethod('set_ps', ['sensor_pir_enable', param], callback);
return _callMiSDKMethod('set_ps', ['kid_mode', param], callback);
return _callMiSDKMethod('set_ps', ['cfg_ble_ctrl', param], callback);
return _callMiSDKMethod('set_ps', ['trans_default', param], callback);
return _callMiSDKMethod('set_ps', ['cfg_fast_scene_switch', param], callback);
return Api.callMiSDKMethod('set_ps', ['cfg_indicator', parameters.join(",")], callback);
return Api.callMiSDKMethod('set_ps', ['cfg_mode_data', values.join(",")], callback);
return Api.callMiSDKMethod('set_ps', ['cfg_mode_data', values.join(",")], callback);
return Api.callMiSDKMethod('set_ps', ['knock_enable', value], callback);